equal
deleted
inserted
replaced
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 |