fix error in changed filters
svn: r16018
This commit is contained in:
parent
4d89c9da3b
commit
460497f489
@ -60,7 +60,7 @@ class RegExpName(Rule):
|
|||||||
def apply(self,db,person):
|
def apply(self,db,person):
|
||||||
for name in [person.get_primary_name()] + person.get_alternate_names():
|
for name in [person.get_primary_name()] + person.get_alternate_names():
|
||||||
for field in [name.first_name, name.get_surname(), name.suffix,
|
for field in [name.first_name, name.get_surname(), name.suffix,
|
||||||
name.title, name.nick, name.famnick, self.call]:
|
name.title, name.nick, name.famnick, name.call]:
|
||||||
if self.match.match(field):
|
if self.match.match(field):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
@ -55,7 +55,7 @@ class SearchName(Rule):
|
|||||||
|
|
||||||
for name in [person.get_primary_name()] + person.get_alternate_names():
|
for name in [person.get_primary_name()] + person.get_alternate_names():
|
||||||
for field in [name.first_name, name.get_surname(), name.suffix,
|
for field in [name.first_name, name.get_surname(), name.suffix,
|
||||||
name.title, name.nick, name.famnick, self.call]:
|
name.title, name.nick, name.famnick, name.call]:
|
||||||
if src and field.upper().find(src) != -1:
|
if src and field.upper().find(src) != -1:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user