* src/WriteGedcom.py (write_source_ref): Use source, not handle.

svn: r3898
This commit is contained in:
Alex Roitman 2005-01-11 04:32:26 +00:00
parent 89bc901357
commit 4d675bddb8
2 changed files with 8 additions and 5 deletions

View File

@ -4,6 +4,8 @@
* src/ImageSelect.py (GlobalMediaProperties.display_refs):
Add references for personal and family events.
* src/WriteGedcom.py (write_source_ref): Use source, not handle.
2005-01-10 Alex Roitman <shura@alex.neuro.umn.edu>
* src/plugins/StatisticsChart.py: Misc fixes.
* src/PluginMgr.py (reload_plugins): Remove function.

View File

@ -1171,11 +1171,12 @@ class GedcomWriter:
# Not using CONC and CONT because GeneWeb does not support these.
# TEXT and NOTE will be ignored by GeneWeb, but we can't
# output paragaphs in SOUR without CONT.
sbase = ref.get_base_handle()
if sbase and sbase.get_title():
txt = sbase.get_title() + ". "
else:
txt = ""
txt = ""
sbase_handle = ref.get_base_handle()
if sbase_handle:
sbase = self.db.get_source_from_handle(sbase_handle)
if sbase and sbase.get_title():
txt = sbase.get_title() + ". "
if ref.get_page():
txt = txt + ref.get_page() + ". "
self.g.write("%d SOUR %s" % (level,self.cnvtxt(txt)))