diff --git a/ChangeLog b/ChangeLog index 16de5b034..294af503f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-01-04 Gary Burton + * src/GrampsDbUtils/_ReadXML.py: removed code that is adding the gramps + ID onto the end of pre-existing place descriptions. Bug #1502 + 2008-01-03 Benny Malengier * data/gramps.desktop.in: list more mime types, item 851 diff --git a/src/GrampsDbUtils/_ReadXML.py b/src/GrampsDbUtils/_ReadXML.py index a5e2f0ecb..b9c634925 100644 --- a/src/GrampsDbUtils/_ReadXML.py +++ b/src/GrampsDbUtils/_ReadXML.py @@ -757,6 +757,7 @@ class GrampsParser(UpdateCallback): # GRAMPS LEGACY: title in the placeobj tag self.placeobj.title = attrs.get('title', '') + print attrs.get('ptitle') self.locations = 0 self.update(self.p.CurrentLineNumber) @@ -1725,14 +1726,15 @@ class GrampsParser(UpdateCallback): def stop_ptitle(self, tag): self.placeobj.title = tag + print tag def stop_placeobj(self, *tag): if self.placeobj.title == "": loc = self.placeobj.get_main_location() self.placeobj.title = build_place_title(loc) - if self.placeobj.title in self.place_names: - self.placeobj.title += " [%s]" % self.placeobj.gramps_id + # if self.placeobj.title in self.place_names: + # self.placeobj.title += " [%s]" % self.placeobj.gramps_id self.db.commit_place(self.placeobj, self.trans, self.change) self.placeobj = None