provide separate method for retrieving query fields including the hidden ones, in order to be able to use hidden query fields for predefined selections

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@4218 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2011-04-19 06:42:30 +00:00
parent d16ee0b16f
commit 24e552ee9a

View file

@ -92,6 +92,9 @@ class Report(Template):
def components(self):
return self.fields
def getAllQueryFields(self):
return [f for f in self.fields if 'query' in f.executionSteps]
def getQueryFields(self, include=None, exclude=None):
result = [f for f in self.fields if 'query' in f.executionSteps]
if include: