Fixed object reference privacy in XML reading

svn: r459
This commit is contained in:
Don Allingham 2001-10-11 23:16:38 +00:00
parent 89d456cff9
commit e4d82797d2

View File

@ -450,6 +450,8 @@ class GrampsParser(handler.ContentHandler):
def start_objref(self,attrs):
self.objref = ObjectRef()
self.objref.setReference(self.db.findObjectNoMap(u2l(attrs['ref'])))
if attrs.has_key('priv'):
self.objref.setPrivacy(int(u2l(attrs['priv'])))
if self.family:
self.family.addPhoto(self.objref)
elif self.source: