Support for notes and sources in more data elements, new GEDCOM parser
svn: r66
This commit is contained in:
@@ -293,8 +293,16 @@ class IndivSummary:
|
||||
|
||||
family = self.person.getMainFamily()
|
||||
if family:
|
||||
father = family.getFather().getPrimaryName().getRegularName()
|
||||
mother = family.getMother().getPrimaryName().getRegularName()
|
||||
father_inst = family.getFather()
|
||||
if father_inst:
|
||||
father = father_inst.getPrimaryName().getRegularName()
|
||||
else:
|
||||
father = ""
|
||||
mother_inst = family.getMother()
|
||||
if mother_inst:
|
||||
mother = mother_inst.getPrimaryName().getRegularName()
|
||||
else:
|
||||
mother = ""
|
||||
else:
|
||||
father = ""
|
||||
mother = ""
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -26,6 +26,8 @@ import string
|
||||
import time
|
||||
import const
|
||||
import utils
|
||||
import intl
|
||||
_ = intl.gettext
|
||||
|
||||
from gtk import *
|
||||
from gnome.ui import *
|
||||
@@ -192,9 +194,9 @@ def add_persons_sources(person):
|
||||
if person.getDeath():
|
||||
elist.append(person.getDeath())
|
||||
for event in elist:
|
||||
source = event.getSource()
|
||||
if source != None:
|
||||
source_list.append(source)
|
||||
source_ref = event.getSourceRef()
|
||||
if source_ref != None:
|
||||
source_list.append(source_ref)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -208,9 +210,9 @@ def add_familys_sources(family):
|
||||
if family.getDivorce():
|
||||
elist.append(family.getDivorce())
|
||||
for event in elist:
|
||||
source = event.getSource()
|
||||
if source != None:
|
||||
source_list.append(source)
|
||||
source_ref = event.getSourceRef()
|
||||
if source_ref != None:
|
||||
source_list.append(source_ref)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -233,6 +233,26 @@
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkRadioButton</class>
|
||||
<name>abiword</name>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>toggled</name>
|
||||
<handler>on_html_toggled</handler>
|
||||
<last_modification_time>Tue, 20 Mar 2001 17:02:37 GMT</last_modification_time>
|
||||
</signal>
|
||||
<label>AbiWord</label>
|
||||
<active>False</active>
|
||||
<draw_indicator>True</draw_indicator>
|
||||
<group>format</group>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkRadioButton</class>
|
||||
<name>pdf</name>
|
||||
|
||||
Reference in New Issue
Block a user