8683: keep support for XML v1.7.0

This commit is contained in:
Jérôme Rapinat 2015-07-06 15:45:35 +02:00
parent ac29b091a7
commit 905ac154d3

View File

@ -1702,6 +1702,8 @@ class GrampsParser(UpdateCallback):
def start_name(self, attrs):
if self.person:
self.start_person_name(attrs)
if self.placeobj: # XML 1.7.0
self.start_place_name(attrs)
def start_place_name(self, attrs):
self.place_name = PlaceName()
@ -2690,6 +2692,8 @@ class GrampsParser(UpdateCallback):
def stop_name(self, attrs):
if self.person:
self.stop_person_name(attrs)
if self.placeobj: # XML 1.7.0
self.stop_place_name(attrs)
def stop_place_name(self, tag):
self.place_name = None