From 994db96378f62c0f00a5000f008db8fe4aade233 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sun, 7 Sep 2008 11:08:18 +0000 Subject: [PATCH] Fix problems remaining since note markup was changed. Remove False parameter in calls to note.get(). Bug #2351 svn: r11037 --- src/Filters/Rules/Person/_HasNoteMatchingSubstringOf.py | 2 +- src/Filters/Rules/_HasNoteRegexBase.py | 2 +- src/Filters/Rules/_HasNoteSubstrBase.py | 2 +- src/ToolTips.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Filters/Rules/Person/_HasNoteMatchingSubstringOf.py b/src/Filters/Rules/Person/_HasNoteMatchingSubstringOf.py index d7507b036..bf834a738 100644 --- a/src/Filters/Rules/Person/_HasNoteMatchingSubstringOf.py +++ b/src/Filters/Rules/Person/_HasNoteMatchingSubstringOf.py @@ -49,7 +49,7 @@ class HasNoteMatchingSubstringOf(Rule): notelist = person.get_note_list() for notehandle in notelist: note = db.get_note_from_handle(notehandle) - n = note.get(False) + n = note.get() if n.upper().find(self.list[0].upper()) != -1: return True return False diff --git a/src/Filters/Rules/_HasNoteRegexBase.py b/src/Filters/Rules/_HasNoteRegexBase.py index 562ab68c9..f6ba07800 100644 --- a/src/Filters/Rules/_HasNoteRegexBase.py +++ b/src/Filters/Rules/_HasNoteRegexBase.py @@ -59,7 +59,7 @@ class HasNoteRegexBase(Rule): notelist = person.get_note_list() for notehandle in notelist: note = db.get_note_from_handle(notehandle) - n = unicode(note.get(False)) + n = unicode(note.get()) if self.match.match(n) is not None: return True return False diff --git a/src/Filters/Rules/_HasNoteSubstrBase.py b/src/Filters/Rules/_HasNoteSubstrBase.py index d3571d2ec..5bd7acadd 100644 --- a/src/Filters/Rules/_HasNoteSubstrBase.py +++ b/src/Filters/Rules/_HasNoteSubstrBase.py @@ -50,7 +50,7 @@ class HasNoteSubstrBase(Rule): notelist = person.get_note_list() for notehandle in notelist: note = db.get_note_from_handle(notehandle) - n = unicode(note.get(False)) + n = unicode(note.get()) if n.upper().find(self.list[0].upper()) != -1: return True return False diff --git a/src/ToolTips.py b/src/ToolTips.py index 6044d62bf..e1de0b7b3 100644 --- a/src/ToolTips.py +++ b/src/ToolTips.py @@ -156,7 +156,7 @@ class RepositoryTip: for notehandle in notelist: note = self._db.get_note_from_handle(notehandle) s += "\t%s:\t%s\n" % ( - _("Note"), escape(note.get(False))) + _("Note"), escape(note.get())) # Get the list of sources that reference this repository repos_handle = self._obj.get_handle()