From 2d84cf5d7dc205bb06733ad184ed3e012d86e4fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Fri, 13 Feb 2009 15:13:53 +0000 Subject: [PATCH] #2700 #2490 do not translate argument on custom_filter.xml svn: r11980 --- src/Filters/Rules/Person/_HasAddress.py | 6 +++--- src/Filters/Rules/Person/_HasAssociation.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Filters/Rules/Person/_HasAddress.py b/src/Filters/Rules/Person/_HasAddress.py index cc90fbf86..5a4f83a7f 100755 --- a/src/Filters/Rules/Person/_HasAddress.py +++ b/src/Filters/Rules/Person/_HasAddress.py @@ -51,16 +51,16 @@ class HasAddress(Rule): def prepare(self, db): # things we want to do just once, not for every handle - if self.list[1] == _('lesser than'): + if self.list[1] == 'lesser than': self.count_type = 0 - elif self.list[1] == _('greater than'): + elif self.list[1] == 'greater than': self.count_type = 2 else: self.count_type = 1 # "equal to" self.userSelectedCount = int(self.list[0]) - def apply(self, db, obj): + def apply(self, db, person): count = len( person.get_address_list()) if self.count_type == 0: # "lesser than" return count < self.userSelectedCount diff --git a/src/Filters/Rules/Person/_HasAssociation.py b/src/Filters/Rules/Person/_HasAssociation.py index 5d2b1583b..e2c297ca6 100755 --- a/src/Filters/Rules/Person/_HasAssociation.py +++ b/src/Filters/Rules/Person/_HasAssociation.py @@ -50,9 +50,9 @@ class HasAssociation(Rule): def prepare(self, db): # things we want to do just once, not for every handle - if self.list[1] == _('lesser than'): + if self.list[1] == 'lesser than': self.count_type = 0 - elif self.list[1] == _('greater than'): + elif self.list[1] == 'greater than': self.count_type = 2 else: self.count_type = 1 # "equal to"