8683: keep support for XML v1.7.0
This commit is contained in:
parent
0f86d84dca
commit
00a547b2bd
@ -1704,6 +1704,8 @@ class GrampsParser(UpdateCallback):
|
|||||||
def start_name(self, attrs):
|
def start_name(self, attrs):
|
||||||
if self.person:
|
if self.person:
|
||||||
self.start_person_name(attrs)
|
self.start_person_name(attrs)
|
||||||
|
if self.placeobj: # XML 1.7.0
|
||||||
|
self.start_place_name(attrs)
|
||||||
|
|
||||||
def start_place_name(self, attrs):
|
def start_place_name(self, attrs):
|
||||||
self.place_name = PlaceName()
|
self.place_name = PlaceName()
|
||||||
@ -2692,6 +2694,8 @@ class GrampsParser(UpdateCallback):
|
|||||||
def stop_name(self, attrs):
|
def stop_name(self, attrs):
|
||||||
if self.person:
|
if self.person:
|
||||||
self.stop_person_name(attrs)
|
self.stop_person_name(attrs)
|
||||||
|
if self.placeobj: # XML 1.7.0
|
||||||
|
self.stop_place_name(attrs)
|
||||||
|
|
||||||
def stop_place_name(self, tag):
|
def stop_place_name(self, tag):
|
||||||
self.place_name = None
|
self.place_name = None
|
||||||
|
Loading…
Reference in New Issue
Block a user