diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index ff08c5122..b4ae84ca6 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-04-14 Don Allingham + * src/GrampsDb/_ReadXML.py: handle ChildRefType + * src/GrampsDb/_ConstXML.py: remove unused map + 2006-04-14 Martin Hawlisch * src/DataViews/_PedigreeView.py: Fix ChildRef, Show person references * src/Editors/_EditFamily.py: Typo diff --git a/gramps2/src/GrampsDb/_ConstXML.py b/gramps2/src/GrampsDb/_ConstXML.py index 4f2c03f67..0372c5732 100644 --- a/gramps2/src/GrampsDb/_ConstXML.py +++ b/gramps2/src/GrampsDb/_ConstXML.py @@ -32,15 +32,6 @@ import RelLib # Collection of standard types for various kinds of objects # #------------------------------------------------------------------------- -child_relations = ( - (RelLib.ChildRefType.BIRTH , "Birth"), - (RelLib.ChildRefType.ADOPTED , "Adopted"), - (RelLib.ChildRefType.STEPCHILD , "Stepchild"), - (RelLib.ChildRefType.SPONSORED , "Sponsored"), - (RelLib.ChildRefType.FOSTER , "Foster"), - (RelLib.ChildRefType.UNKNOWN , "Unknown"), - ) - events = ( # Family events (RelLib.Event.UNKNOWN , "Unknown"), @@ -175,7 +166,6 @@ url_types = ( # mapping from the tuple collection to the appropriate CUSTOM integer custom_types = { - child_relations : RelLib.ChildRefType.CUSTOM, events : RelLib.Event.CUSTOM, attributes : RelLib.Attribute.CUSTOM, family_relations : RelLib.Family.CUSTOM, diff --git a/gramps2/src/GrampsDb/_ReadXML.py b/gramps2/src/GrampsDb/_ReadXML.py index 708e62563..48ef5b1a9 100644 --- a/gramps2/src/GrampsDb/_ReadXML.py +++ b/gramps2/src/GrampsDb/_ReadXML.py @@ -77,6 +77,15 @@ except: personRE = re.compile(r"\s*\