Fixed sorting

svn: r1373
This commit is contained in:
Don Allingham 2003-03-21 04:25:55 +00:00
parent 6e8abd2e78
commit dd1d9acbde
7 changed files with 19 additions and 17 deletions

View File

@ -97,7 +97,7 @@ class DbPrompter:
wFs.get_widget('fileselection').set_title('%s - GRAMPS' % _('Save database'))
def save_ok_button_clicked(self,obj):
filename = obj.get_filename()
filename = obj.get_filename().encode('iso8859-1')
if filename:
Utils.destroy_passed_object(obj)
if GrampsCfg.usevc and GrampsCfg.vc_comment:
@ -126,7 +126,7 @@ class DbPrompter:
self.show()
def ok_button_clicked(self,obj):
filename = self.dbname.get_full_path(0)
filename = self.dbname.get_full_path(0).encode('iso8859-1')
if not filename:
return

View File

@ -326,8 +326,8 @@ class EditPerson:
self.redraw_addr_list()
self.redraw_name_list()
self.redraw_url_list()
self.given.grab_focus()
self.window.show()
def build_columns(self,tree,list):
cnum = 0

View File

@ -56,7 +56,7 @@ except:
#-------------------------------------------------------------------------
def importData(database, filename, callback):
filename = os.path.normpath(filename)
filename = os.path.normpath(filename).encode('iso8859-1')
basefile = os.path.dirname(filename)
database.smap = {}
database.pmap = {}

View File

@ -5,7 +5,6 @@
<requires lib="canvas"/>
<widget class="GtkDialog" id="editPerson">
<property name="visible">True</property>
<property name="has_focus">True</property>
<property name="title" translatable="yes"></property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
@ -3813,7 +3812,7 @@
</child>
<child>
<widget class="GtkButton" id="button134">
<widget class="GtkButton" id="edit_url">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>

View File

@ -965,10 +965,10 @@ class Gramps:
else:
val = self.db.getPersonDisplay(id)
pg = val[5]
if pg:
if pg and pg != '@':
pg = pg[0]
else:
pg = '@'
pg = ''
model = self.alpha_page[pg]
iter = None
@ -1215,7 +1215,7 @@ class Gramps:
pg = pg[0]
if self.DataFilter.compare(person):
if pg != '@':
if pg and pg != '@':
if not self.alpha_page.has_key(pg):
self.create_new_panel(pg)
model = self.alpha_page[pg]
@ -1366,6 +1366,7 @@ class Gramps:
self.id2col = {}
self.model_used = {}
self.alpha_page = {}
self.tab_list = []
self.apply_filter()
self.goto_active_person()
self.modify_statusbar()
@ -1382,15 +1383,15 @@ class Gramps:
person = self.db.getPerson(key)
val = self.db.getPersonDisplay(key)
pg = val[5]
if pg:
if pg and pg != '@':
pg = pg[0]
else:
pg = '@'
pg = ''
if datacomp(person):
if self.id2col.has_key(key):
continue
if pg != '@':
if pg and pg != '@':
if not self.alpha_page.has_key(pg):
self.create_new_panel(pg)
model = self.alpha_page[pg]

View File

@ -57,6 +57,7 @@ import GedcomInfo
import ansel_utf8
from intl import gettext as _
from QuestionDialog import ErrorDialog
def keep_utf8(s):
return s
@ -471,8 +472,8 @@ class GedcomWriter:
"on_close_clicked" : Utils.destroy_passed_object
})
Utils.set_titles(self.topDialog.get_widget('exportprogress'),
self.topDialog.get_widget('title'),
Utils.set_titles(self.exprogress.get_widget('exportprogress'),
self.exprogress.get_widget('title'),
_('GEDCOM export'))
self.fbar = self.exprogress.get_widget("fbar")
@ -491,12 +492,12 @@ class GedcomWriter:
try:
self.g = open(filename,"w")
except IOError,msg:
msg = "%s\n%s" % (_("Could not create %s") % filename,str(msg))
gnome.ui.GnomeErrorDialog(msg)
msg2 = _("Could not create %s") % filename
ErrorDialog(msg2,str(msg))
self.progress.destroy()
return
except:
gnome.ui.GnomeErrorDialog(_("Could not create %s") % filename)
ErrorDialog(_("Could not create %s") % filename)
self.progress.destroy()
return

View File

@ -535,6 +535,7 @@
<child>
<widget class="GtkVBox" id="vbox4">
<property name="border_width">6</property>
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>