server/migractions.py
changeset 1080 7437abc17e02
parent 972 1efba3fd1364
child 1240 6a9f621e07cc
equal deleted inserted replaced
1079:452cb76fe07a 1080:7437abc17e02
   192     
   192     
   193     @property
   193     @property
   194     @cached
   194     @cached
   195     def rqlcursor(self):
   195     def rqlcursor(self):
   196         """lazy rql cursor"""
   196         """lazy rql cursor"""
   197         return self.cnx.cursor(self.session)    
   197         # should not give session as cnx.cursor(), else we may try to execute
       
   198         # some query while no pool is set on the session (eg on entity attribute
       
   199         # access for instance)
       
   200         return self.cnx.cursor()
   198     
   201     
   199     def commit(self):
   202     def commit(self):
   200         if hasattr(self, '_cnx'):
   203         if hasattr(self, '_cnx'):
   201             self._cnx.commit()
   204             self._cnx.commit()
   202             
   205