Fix a bit of indirection
This commit is contained in:
parent
27f6b1c692
commit
ced21d3b98
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@ class DatabaseTableCursor():
|
|||
return obj
|
||||
|
||||
def fetchone(self):
|
||||
return self.__map__(self.cr.fetchone())
|
||||
row = self.cr.fetchone()
|
||||
|
||||
return self.__map__(row) if row is not None else None
|
||||
|
||||
def fetchall(self):
|
||||
return map(self.__map__, self.cr.fetchall())
|
||||
|
|
Loading…
Add table
Reference in a new issue