[editcontroller] a small debugging help (closes #2518980) stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 28 Mar 2013 15:01:02 +0100
branchstable
changeset 8827 0d81a474c0fe
parent 8821 c4aa23af0baa
child 8831 f7e140182df1
[editcontroller] a small debugging help (closes #2518980)
web/views/editcontroller.py
--- a/web/views/editcontroller.py	Thu Mar 28 12:32:26 2013 +0100
+++ b/web/views/editcontroller.py	Thu Mar 28 15:01:02 2013 +0100
@@ -77,6 +77,10 @@
         self.restrictions = []
         self.kwargs = {}
 
+    def __repr__(self):
+        return ('Query <edited=%r restrictions=%r kwargs=%r>' % (
+            self.edited, self.restrictions, self.kwargs))
+
     def insert_query(self, etype):
         if self.edited:
             rql = 'INSERT %s X: %s' % (etype, ','.join(self.edited))