#2700 #2490 do not translate argument on custom_filter.xml

svn: r11980
This commit is contained in:
Jérôme Rapinat 2009-02-13 15:13:53 +00:00
parent 16257bd0f1
commit 2d84cf5d7d
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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"