* src/GrampsDb/_GrampsBSDDB.py: Upgrade to new types.
* src/GrampsDb/_ReadGedcom.py: Adapt to new types. * src/RelLib/_Event.py: Properly set type. * src/RelLib/_EventRef.py: Properly set type. * src/RelLib/_Family.py: Properly set type. * src/RelLib/_Name.py: Properly set type. * src/RelLib/_Person.py: Properly set type. * src/RelLib/_PrimaryObject.py: Properly set type. * src/RelLib/_RepoRef.py: Properly set type. * src/RelLib/_Repository.py: Properly set type. * src/RelLib/_Url.py: Properly set type. svn: r6386
This commit is contained in:
@@ -45,7 +45,6 @@ from _EventRef import EventRef
|
||||
from _LdsOrdBase import LdsOrdBase
|
||||
from _ChildRef import ChildRef
|
||||
from _FamilyRelType import FamilyRelType
|
||||
from _MarkerType import MarkerType
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -298,11 +297,7 @@ class Family(PrimaryObject,SourceBase,NoteBase,MediaBase,AttributeBase,
|
||||
between the father and mother of the relationship.
|
||||
@type relationship_type: tuple
|
||||
"""
|
||||
if type(relationship_type) == tuple:
|
||||
self.type = FamilyRelType(relationship_type)
|
||||
else:
|
||||
self.type = relationship_type
|
||||
return
|
||||
self.type.set(relationship_type)
|
||||
|
||||
def get_relationship(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user