diff --git a/ChangeLog b/ChangeLog index c9eb0e268..8f1752b08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-01-16 Benny Malengier + * configure.in: don't make help makefile + * src/FilterEditor/_ShowResults.py: shorten text, bug 1609 + 2008-01-16 Benny Malengier * src/GrampsDbUtils/_GrampsDbWriteXML.py: import gzip only once diff --git a/configure.in b/configure.in index c5f6ee080..f87a0bf95 100644 --- a/configure.in +++ b/configure.in @@ -139,7 +139,6 @@ AC_MSG_RESULT($has_pyglade) AC_CONFIG_FILES([ po/Makefile.in m4/Makefile -help/Makefile Makefile gramps.sh src/const.py diff --git a/src/FilterEditor/_ShowResults.py b/src/FilterEditor/_ShowResults.py index ed223505d..77decfa66 100644 --- a/src/FilterEditor/_ShowResults.py +++ b/src/FilterEditor/_ShowResults.py @@ -133,9 +133,11 @@ class ShowResults(ManagedWindow.ManagedWindow): gid = repo.get_gramps_id() elif self.space == 'Note': note = self.db.get_note_from_handle(handle) - name = note.get() + name = note.get().replace('\n', ' ') + if len(name) > 80: + name = name[:80]+"..." gid = note.get_gramps_id() - return (name,gid) + return (name, gid) def sort_val_from_handle(self, handle): if self.space == 'Person': @@ -161,6 +163,6 @@ class ShowResults(ManagedWindow.ManagedWindow): name = self.db.get_repository_from_handle(handle).get_name() sortname = locale.strxfrm(name) elif self.space == 'Note': - name = self.db.get_note_from_handle(handle).get() - sortname = locale.strxfrm(name) + gid = self.db.get_note_from_handle(handle).get_gramps_id() + sortname = locale.strxfrm(gid) return (sortname,handle)