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

@@ -701,8 +701,8 @@ class FamilyView(PageView.PersonNavView):
if family:
person = self.dbstate.db.get_person_from_handle(self.dbstate.active.handle)
GrampsDb.add_child_to_family(family, child,
(RelLib.ChildRef.CHILD_BIRTH,'')
(RelLib.ChildRef.CHILD_BIRTH,''))
RelLib.ChildRef(),
RelLib.ChildRef())
def add_parent_family(self, obj, event, handle):
if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1:

View File

@@ -1127,8 +1127,8 @@ class PedigreeView(PageView.PersonNavView):
if family != None:
for child_ref in family.get_child_ref_list():
if child_ref.ref == person.handle:
mrel = child_ref.mrel != RelLib.ChildRef.CHILD_BIRTH
frel = child_ref.frel != RelLib.ChildRef.CHILD_BIRTH
mrel = child_ref.mrel != RelLib.ChildRefType.BIRTH
frel = child_ref.frel != RelLib.ChildRefType.BIRTH
lst[index] = (person,val,family)
father_handle = family.get_father_handle()