From d76615b086b1339dec0d2bc9144564260bd25341 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 12 Sep 2009 18:12:31 +0000 Subject: [PATCH] Fix for a iter change svn: r13198 --- src/plugins/gramplet/DataEntryGramplet.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/gramplet/DataEntryGramplet.py b/src/plugins/gramplet/DataEntryGramplet.py index d9e9ad0aa..2da311c28 100644 --- a/src/plugins/gramplet/DataEntryGramplet.py +++ b/src/plugins/gramplet/DataEntryGramplet.py @@ -283,8 +283,7 @@ class DataEntryGramplet(Gramplet): def get_or_create_place(self, place_name): if place_name == "": return (-1, None) - place_list = self.dbstate.iter.get_place_handles() - for place_handle in place_list: + for place_handle in self.dbstate.db.iter_place_handles(): place = self.dbstate.db.get_place_from_handle(place_handle) if place.get_title().strip() == place_name: return (0, place) # (old, object)