Start of new type classes

svn: r6340
This commit is contained in:
Don Allingham
2006-04-14 04:36:25 +00:00
parent efd56461dd
commit e99a795581
34 changed files with 462 additions and 164 deletions

View File

@ -917,8 +917,8 @@ class GrampsParser:
frel = _ConstXML.tuple_from_xml(_ConstXML.child_relations,
attrs.get('frel','Birth'))
if mrel[0] != RelLib.ChildRef.CHILD_BIRTH or \
frel[0] != RelLib.ChildRef.CHILD_BIRTH:
if mrel != RelLib.ChildRefType.CHILD_BIRTH or \
frel != RelLib.ChildRefType.CHILD_BIRTH:
childref = RelLib.ChildRef()
childref.ref = self.person.handle
childref.set_mother_relation(mrel)