PgManager: add support for str, repr of RowDict.
authorRadek Brich <radek.brich@devl.cz>
Thu, 21 Mar 2013 17:40:11 +0100
changeset 80 b830c6f7b30a
parent 79 d02a36d0a9b0
child 81 f709b1c7ca0c
PgManager: add support for str, repr of RowDict.
pgtoolkit/pgmanager.py
--- a/pgtoolkit/pgmanager.py	Tue Mar 19 16:46:36 2013 +0100
+++ b/pgtoolkit/pgmanager.py	Thu Mar 21 17:40:11 2013 +0100
@@ -148,6 +148,9 @@
     def items(self):
         return self._dict.items()
 
+    def __repr__(self):
+        return 'RowDict(%s)' % str(self._dict.items())
+
 
 class Cursor(psycopg2.extensions.cursor):