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