X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifold%2Fmanifoldquery.py;h=ca418878bb3e2d5b8de41f9f09360b321a58372c;hb=72587434bf584d3ab48542f95cada8b530600bd2;hp=9881f41d04fcaab424de10a091aa356d04ede545;hpb=45ea2e7ea4d6240f723cf743b9ad493ad70ceed2;p=unfold.git diff --git a/manifold/manifoldquery.py b/manifold/manifoldquery.py index 9881f41d..ca418878 100644 --- a/manifold/manifoldquery.py +++ b/manifold/manifoldquery.py @@ -25,6 +25,11 @@ class ManifoldQuery: self.analyzed_query=None self.subqueries = {} + def __repr__ (self): + result="Q: id=%(query_uuid)s - %(action)s on %(method)s "%self.__dict__ + result += " with %d filters, %d fields"%(len(self.filters),len(self.params)) + return result + def to_json (self): query_uuid=self.query_uuid a=self.action @@ -61,8 +66,7 @@ class ManifoldQuery: setattr(self, arg, d[key]) break - - + # not used yet .. def analyze_subqueries(self): analyzed_query = ManifoldQuery() analyzed_query.query_uuid = self.query_uuid