From 74afbba15a96f14a3c5ba00c7fa617a61fc714d7 Mon Sep 17 00:00:00 2001 From: helmutm Date: Thu, 7 Oct 2010 08:18:35 +0000 Subject: [PATCH] allow for hidden query fields git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@4033 fd906abe-77d9-0310-91a1-e0d9ade77398 --- composer/report/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer/report/base.py b/composer/report/base.py index 28c4c0e..b3ef89f 100644 --- a/composer/report/base.py +++ b/composer/report/base.py @@ -74,6 +74,7 @@ class Report(Template): manager = None fields = Jeep((field.label,)) + hiddenQueryFields = () defaultOutputFields = (field.label,) defaultSortCriteria = (field.label,) presentationFormat = None @@ -97,7 +98,7 @@ class Report(Template): result = [f for f in result if f.fieldType in include] if exclude: result = [f for f in result if f.fieldType not in exclude] - return result + return [f for f in result if f not in self.hiddenQueryFields] def getOutputFields(self): return [f for f in self.fields if 'output' in f.executionSteps]