* src/GrampsDb/_WriteGedcom.py (write_repos): Add method.

svn: r6733
This commit is contained in:
Alex Roitman 2006-05-21 04:14:47 +00:00
parent b50cdad0c2
commit beb85185a1
2 changed files with 12 additions and 5 deletions

View File

@ -1,4 +1,5 @@
2006-05-20 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_WriteGedcom.py (write_repos): Add method.
* src/gramps_main.py (Gramps.__init__): Call ArgHandler between
init_interface and post_init_interface.
* src/ViewManager.py (init_interface): Split off post_init_interface.

View File

@ -321,11 +321,6 @@ def make_date(subdate,calendar,mode):
return retval
#-------------------------------------------------------------------------
#
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
#
#
@ -479,6 +474,11 @@ class GedcomWriterOptionBox:
self.nl = self.cnvtxt(self.target_ged.get_endl())
#-------------------------------------------------------------------------
#
# GedcomWriter class
#
#-------------------------------------------------------------------------
class GedcomWriter(UpdateCallback):
def __init__(self,database,person,cl=0,filename="",option_box=None,
callback=None):
@ -670,6 +670,9 @@ class GedcomWriter(UpdateCallback):
if self.source_refs:
self.write_sources()
# FIXME: This method needs to be written
self.write_repos()
self.writeln("0 TRLR")
self.g.close()
return 1
@ -863,6 +866,9 @@ class GedcomWriter(UpdateCallback):
self.write_change(1,source.get_change_time())
self.update()
def write_repos(self):
print "GEDCOM export of repositories is not done yet."
def write_person(self,person):
self.writeln("0 @%s@ INDI" % person.get_gramps_id())
restricted = self.restrict and Utils.probably_alive (person,self.db)