* src/Filters/Rules/_HasEventBase.py (apply): Do not match empty

places. 


svn: r7744
This commit is contained in:
Alex Roitman 2006-12-01 16:45:42 +00:00
parent 4fff3e494a
commit fd16b520a9
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,8 @@
parents in case the toolbar is not visible.
2006-12-01 Alex Roitman <shura@gramps-project.org>
* src/Filters/Rules/_HasEventBase.py (apply): Do not match empty
places.
* src/plugins/Rebuild.py (__init__): Proper progress indication.
* src/ArgHandler.py (cl_action): Properly call CLI tool.
* src/plugins/DumpGenderStats.py (__init__): Fix CLI mode.

View File

@ -43,7 +43,7 @@ from Filters.Rules._RuleUtils import loose_date_cmp
#
#-------------------------------------------------------------------------
class HasEventBase(Rule):
"""Rule that checks for a person with a particular value"""
"""Rule that checks for an event with a particular value"""
labels = [ _('Event type:'),
@ -84,4 +84,6 @@ class HasEventBase(Rule):
pn = pl.get_title()
if pn.upper().find(self.list[2].upper()) == -1:
return False
else:
return False
return True