* src/GenericFilter.py (HasTextMatchingSubstringOf): Minor.

* src/plugins/FilterEditor.py (EditRule:__init__): Typo.
* ChangeLog.old: Add to CVS the pre-2005 ChangeLog; Split off current.


svn: r4195
This commit is contained in:
Alex Roitman 2005-03-16 16:38:20 +00:00
parent 381110412b
commit 11c61d5766
4 changed files with 8358 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2005-03-16 Alex Roitman <shura@gramps-project.org>
* src/GenericFilter.py (HasTextMatchingSubstringOf): Minor.
* src/plugins/FilterEditor.py (EditRule:__init__): Typo.
* ChangeLog.old: Add to CVS the pre-2005 ChangeLog; Split off current.
2005-03-16 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/GenericFilter.py (HasTextMatchingSubstringOf): add checkboxes for case and
regexp matching; (HasTextMatchingRegexpOf) Added wrapper to use regexp matching

8349
gramps2/ChangeLog.old Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1948,10 +1948,10 @@ class HasTextMatchingSubstringOf(Rule):
for handle in place_list:
self.place_map[handle] = 1
def match_object(self,object):
def match_object(self,obj):
if self.regexp_match:
return object.matches_regexp(self.list[0],self.case_sensitive)
return object.matches_string(self.list[0],self.case_sensitive)
return obj.matches_regexp(self.list[0],self.case_sensitive)
return obj.matches_string(self.list[0],self.case_sensitive)
#-------------------------------------------------------------------------
# "HasTextMatchingRegexOf"

View File

@ -638,7 +638,7 @@ class EditRule:
elif v == _('Inclusive:'):
t = MyBoolean(_('Include original person'))
elif v == _('Case sensitive:'):
t = MyBoolean(_('Use exact case of letters:'))
t = MyBoolean(_('Use exact case of letters'))
elif v == _('Regular-Expression matching:'):
t = MyBoolean(_('Use regular expression'))
else: