diff options
| author | Christophe Simonis <chs@odoo.com> | 2015-05-11 16:22:17 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2015-05-11 16:24:33 +0200 |
| commit | 04b252b72c3bb5568f002e05d2fa889a1b4aae90 (patch) | |
| tree | d33bede743d75444998cfde549dc3fa1e37205a6 /openerp/sql_db.py | |
| parent | 46d446fd478541c2423042c15d0dd671ae8a23fd (diff) | |
[FIX] Cursor.closed property
`_obj` doesn't exists anymore when the cursor is effectively closed.
Diffstat (limited to 'openerp/sql_db.py')
| -rw-r--r-- | openerp/sql_db.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openerp/sql_db.py b/openerp/sql_db.py index 2ed408e61e5..f389a847548 100644 --- a/openerp/sql_db.py +++ b/openerp/sql_db.py @@ -404,9 +404,7 @@ class Cursor(object): @property def closed(self): - # NOTE: we cannot use `__getattr__` delegation as we - # should not `check` that the cursor is closed - return self._obj.closed + return self._closed class TestCursor(Cursor): """ A cursor to be used for tests. It keeps the transaction open across |
