From dff213f94e8231686213e240fad5fc0465217258 Mon Sep 17 00:00:00 2001 From: helmutm Date: Fri, 7 Jan 2011 10:36:56 +0000 Subject: [PATCH] minor fix for checking selection criteria git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@4135 fd906abe-77d9-0310-91a1-e0d9ade77398 --- composer/report/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/composer/report/base.py b/composer/report/base.py index b3ef89f..2587f19 100644 --- a/composer/report/base.py +++ b/composer/report/base.py @@ -152,7 +152,8 @@ class LeafQueryCriteria(BaseQueryCriteria, Element): self.field = field def check(self, row): - if not self.comparisonValue: + #if not self.comparisonValue: + if self.comparisonValue in (None, '',): return True value = self.field.getSelectValue(row) op = operators.get(self.operator) @@ -161,7 +162,7 @@ class LeafQueryCriteria(BaseQueryCriteria, Element): if op is None: # TODO: log warning return True - #print '***', self.field.name, value, op, self.comparisonValue + #print '***', self.field.name, repr(value), op, repr(self.comparisonValue) return op(value, self.comparisonValue) def showComparisonValue(self):