equal
deleted
inserted
replaced
675 if not self._closed is None: |
675 if not self._closed is None: |
676 raise ProgrammingError('Connection is already closed') |
676 raise ProgrammingError('Connection is already closed') |
677 self._repo.rollback(self.sessionid) |
677 self._repo.rollback(self.sessionid) |
678 |
678 |
679 def cursor(self, req=None): |
679 def cursor(self, req=None): |
680 """Return a new Cursor Object using the connection. If the database |
680 """Return a new Cursor Object using the connection. |
681 does not provide a direct cursor concept, the module will have to |
681 |
682 emulate cursors using other means to the extent needed by this |
682 On pyro connection, you should get cursor after calling if |
683 specification. |
683 load_appobjects method if desired (which you should call if you intend |
|
684 to use ORM abilities). |
684 """ |
685 """ |
685 if self._closed is not None: |
686 if self._closed is not None: |
686 raise ProgrammingError('Can\'t get cursor on closed connection') |
687 raise ProgrammingError('Can\'t get cursor on closed connection') |
687 if req is None: |
688 if req is None: |
688 req = self.request() |
689 req = self.request() |