From c9422095acd28c0d3276a5dab08c97fa3258e404 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 11 Oct 2001 23:16:38 +0000 Subject: [PATCH] Fixed object reference privacy in XML reading svn: r459 --- src/GrampsParser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GrampsParser.py b/src/GrampsParser.py index 18d7ea4f1..598ab76e5 100644 --- a/src/GrampsParser.py +++ b/src/GrampsParser.py @@ -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: