fix import

svn: r3236
This commit is contained in:
Don Allingham 2004-06-28 01:27:37 +00:00
parent 97377f426d
commit 3213e0e928
4 changed files with 19 additions and 12 deletions

View File

@ -161,6 +161,14 @@ class PeopleModel(gtk.GenericTreeModel):
self.path2iter[tpl] = person_id
val += 1
sval += 1
self.db.set_people_view_maps(self.get_maps())
def get_maps(self):
return (self.top_iter2path,
self.top_path2iter,
self.iter2path,
self.path2iter,
self.sname_sub)
def add_person(self,person):
pid = person.get_id()

View File

@ -86,11 +86,7 @@ class PeopleView:
self.on_plist_button_press)
def get_maps(self):
return (self.person_model.top_iter2path,
self.person_model.top_path2iter,
self.person_model.iter2path,
self.person_model.path2iter,
self.person_model.sname_sub)
return self.person_model.get_maps()
def build_columns(self):
for column in self.columns:

View File

@ -1470,7 +1470,10 @@ class Gramps:
for (importData,filter,mime_type) in Plugins._imports:
if filetype == mime_type or the_file == mime_type:
OkDialog( _("Opening non-native format"),
_("New gramps database has to be set up when opening non-native formats. The following dialog will let you select the new database."),
_("New gramps database has to be set up "
"when opening non-native formats. The "
"following dialog will let you select "
"the new database."),
self.topWindow)
DbPrompter.DbPrompter(self,1,self.topWindow,filename)
importData(self.db,filename)

View File

@ -1125,15 +1125,15 @@ class GedcomWriter:
suffix = self.cnvtxt(name.get_suffix())
title = self.cnvtxt(name.get_title())
if suffix == "":
if not surPref:
self.writeln("1 NAME %s /%s/" % (firstName,surName))
if surPref == "":
self.writeln("1 NAME %s/%s/" % (firstName,surName))
else:
self.writeln("1 NAME %s /%s %s/" % (firstName,surPref,surName))
self.writeln("1 NAME %s/%s %s/" % (firstName,surPref,surName))
else:
if not surPref:
self.writeln("1 NAME %s /%s %s/, %s" % (firstName,surPref,surName,suffix))
if surPref == "":
self.writeln("1 NAME %s/%s/%s" % (firstName,surName,suffix))
else:
self.writeln("1 NAME %s /%s/, %s" % (firstName,surName,suffix))
self.writeln("1 NAME %s/%s %s/%s" % (firstName,surPref,surName,suffix))
if name.get_first_name():
self.writeln("2 GIVN %s" % firstName)