* src/GrampsDb/_WriteGedcom.py (write_repos): Add method.
svn: r6733
This commit is contained in:
parent
b50cdad0c2
commit
beb85185a1
@ -1,4 +1,5 @@
|
|||||||
2006-05-20 Alex Roitman <shura@gramps-project.org>
|
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
|
* src/gramps_main.py (Gramps.__init__): Call ArgHandler between
|
||||||
init_interface and post_init_interface.
|
init_interface and post_init_interface.
|
||||||
* src/ViewManager.py (init_interface): Split off post_init_interface.
|
* src/ViewManager.py (init_interface): Split off post_init_interface.
|
||||||
|
@ -321,11 +321,6 @@ def make_date(subdate,calendar,mode):
|
|||||||
|
|
||||||
return retval
|
return retval
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -479,6 +474,11 @@ class GedcomWriterOptionBox:
|
|||||||
self.nl = self.cnvtxt(self.target_ged.get_endl())
|
self.nl = self.cnvtxt(self.target_ged.get_endl())
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# GedcomWriter class
|
||||||
|
#
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
class GedcomWriter(UpdateCallback):
|
class GedcomWriter(UpdateCallback):
|
||||||
def __init__(self,database,person,cl=0,filename="",option_box=None,
|
def __init__(self,database,person,cl=0,filename="",option_box=None,
|
||||||
callback=None):
|
callback=None):
|
||||||
@ -670,6 +670,9 @@ class GedcomWriter(UpdateCallback):
|
|||||||
if self.source_refs:
|
if self.source_refs:
|
||||||
self.write_sources()
|
self.write_sources()
|
||||||
|
|
||||||
|
# FIXME: This method needs to be written
|
||||||
|
self.write_repos()
|
||||||
|
|
||||||
self.writeln("0 TRLR")
|
self.writeln("0 TRLR")
|
||||||
self.g.close()
|
self.g.close()
|
||||||
return 1
|
return 1
|
||||||
@ -863,6 +866,9 @@ class GedcomWriter(UpdateCallback):
|
|||||||
self.write_change(1,source.get_change_time())
|
self.write_change(1,source.get_change_time())
|
||||||
self.update()
|
self.update()
|
||||||
|
|
||||||
|
def write_repos(self):
|
||||||
|
print "GEDCOM export of repositories is not done yet."
|
||||||
|
|
||||||
def write_person(self,person):
|
def write_person(self,person):
|
||||||
self.writeln("0 @%s@ INDI" % person.get_gramps_id())
|
self.writeln("0 @%s@ INDI" % person.get_gramps_id())
|
||||||
restricted = self.restrict and Utils.probably_alive (person,self.db)
|
restricted = self.restrict and Utils.probably_alive (person,self.db)
|
||||||
|
Loading…
Reference in New Issue
Block a user