From 728e5b536080942ec7f49e5c30cb90f1bf94f8a0 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 7 Jun 2003 14:11:52 +0000 Subject: [PATCH] * src/ImageSelect.py Fixed typo in on_drag_begin * src/RelLib.py Check for the existance of the witness member of an Event. ZODB stores an object, so elements read in from old databases may not have the element, which can cause a traceback. * src/AutoComp.py Don't build popdown lists if the number of elements exceeds 250. Otherwise, the menus will become unusable, and just consume tons of memory. * src/VersionControl.py Sort revision numbers based on numerical value instead of ASCII value. * src/VersionControl.py Check return values of all subprocesses svn: r1663 --- gramps2/src/ImageSelect.py | 2 +- gramps2/src/RelLib.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gramps2/src/ImageSelect.py b/gramps2/src/ImageSelect.py index 69e473eda..3a3855ea7 100644 --- a/gramps2/src/ImageSelect.py +++ b/gramps2/src/ImageSelect.py @@ -253,7 +253,7 @@ class Gallery(ImageSelect): """ def on_drag_begin(self,obj,context): - if const.dnd_iamges: + if const.dnd_images: mtype = self.sel_obj.getReference().getMimeType() name = Utils.thumb_path(self.db.getSavePath(),self.sel_obj.getReference()) pix = gtk.gdk.pixbuf_new_from_file(name) diff --git a/gramps2/src/RelLib.py b/gramps2/src/RelLib.py index cc93aa2e9..f14a9bb3f 100644 --- a/gramps2/src/RelLib.py +++ b/gramps2/src/RelLib.py @@ -1361,7 +1361,11 @@ class Event(DataObj): self.name = source.name self.cause = source.cause if source.witness: - self.witness = source.witness[:] + # old ZODB database may not have this element + try: + self.witness = source.witness[:] + except: + self.witness = None else: self.witness = None else: