# HG changeset patch # User Aurelien Campeas # Date 1364479262 -3600 # Node ID 0d81a474c0fe2077996e8aa675d5d6001d0870f8 # Parent c4aa23af0baab02ef8dfa25ec3cec8f9524108d3 [editcontroller] a small debugging help (closes #2518980) diff -r c4aa23af0baa -r 0d81a474c0fe 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 ' % ( + self.edited, self.restrictions, self.kwargs)) + def insert_query(self, etype): if self.edited: rql = 'INSERT %s X: %s' % (etype, ','.join(self.edited))