self.filters=filters
self.params=params
self.fields=fields
- # xxx this is unused for now
+ # xxx these are unused for now....
self.sort=sort
self.limit=limit
self.offset=offset
self.subqueries = {}
def __repr__ (self):
- result="Q: id=%(query_uuid)s - %(action)s on %(subject)s "%self.__dict__
+ result="[[Q: id=%(query_uuid)s - %(action)s on %(subject)s "%self.__dict__
result += " with %d filters, %d fields"%(len(self.filters),len(self.params))
+ result += "]]"
return result
def to_json (self):
s=self.subject
t=self.timestamp
f=json.dumps (self.filters)
- print 'filters f=',f
p=json.dumps (self.params)
c=json.dumps (self.fields)
# xxx unique can be removed, but for now we pad the js structure