Fixed merge tests for Places; fixed init for PlaceNames with source

This commit is contained in:
Doug Blank
2015-05-26 22:03:07 -04:00
parent cc6820f80c
commit 962608c6bf
2 changed files with 55 additions and 43 deletions

View File

@@ -50,8 +50,12 @@ class PlaceName(SecondaryObject, DateBase):
Create a new PlaceName instance, copying from the source if present.
"""
DateBase.__init__(self, source)
self.value = ''
self.lang = ''
if source:
self.value = source.value
self.lang = source.lang
else:
self.value = ''
self.lang = ''
def serialize(self):
"""