diff options
Diffstat (limited to 'lib/extras.py')
-rw-r--r-- | lib/extras.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/extras.py b/lib/extras.py index 2357447..7be08a6 100644 --- a/lib/extras.py +++ b/lib/extras.py @@ -70,6 +70,12 @@ class DictRow(list): x = self._cursor.index[x] return list.__getitem__(self, x) + def items(self): + res = [] + for n, v in self._cursor.index.items(): + res.append((n, list.__getitem__(self, v))) + return res + class SQL_IN(object): |