Start of new type classes
svn: r6340
This commit is contained in:
@@ -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:
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user