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 2bb2849b7f
commit c9422095ac

View File

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