From cc878faf8f66495ce08113f7abf32e16b7def0f1 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Thu, 3 Jan 2013 09:50:43 +0000 Subject: [PATCH] 6258: Error during start of Gramps for certain LANG values svn: r20949 --- gramps/gui/plug/_dialogs.py | 2 +- gramps/gui/plug/report/_reportdialog.py | 3 +-- gramps/gui/viewmanager.py | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gramps/gui/plug/_dialogs.py b/gramps/gui/plug/_dialogs.py index 52197a1ff..773d05bca 100644 --- a/gramps/gui/plug/_dialogs.py +++ b/gramps/gui/plug/_dialogs.py @@ -216,7 +216,7 @@ class PluginDialog(ManagedWindow): for key in key_list: data = item_hash[key] node = self.store.insert_after(None, prev) - self.store.set(node, 0, key) + self.store.set(node, 0, key[1]) next = None data.sort(key=lambda k:k.name) for item in data: diff --git a/gramps/gui/plug/report/_reportdialog.py b/gramps/gui/plug/report/_reportdialog.py index 1ec448aa0..1636972af 100644 --- a/gramps/gui/plug/report/_reportdialog.py +++ b/gramps/gui/plug/report/_reportdialog.py @@ -205,7 +205,7 @@ class ReportDialog(ManagedWindow): def get_title(self): """The window title for this dialog""" name = self.report_name - category = standalone_categories[self.category] + category = standalone_categories[self.category][1] return "%s - %s - Gramps" % (name, category) #------------------------------------------------------------------------ @@ -644,7 +644,6 @@ def report(dbstate, uistate, person, report_class, options_class, task be in the format of task that takes a database and a person as its arguments. """ - if require_active and not person: ErrorDialog( _('Active person has not been set'), diff --git a/gramps/gui/viewmanager.py b/gramps/gui/viewmanager.py index ef3ca31a6..b3f236038 100644 --- a/gramps/gui/viewmanager.py +++ b/gramps/gui/viewmanager.py @@ -1821,8 +1821,8 @@ class ViewManager(CLIManager): # and the unsupported category at the end of the menu if _UNSUPPORTED in hash_data: ofile.write('') - ofile.write('' % _UNSUPPORTED) - actions.append((_UNSUPPORTED, None, _UNSUPPORTED)) + ofile.write('' % _UNSUPPORTED[0]) + actions.append((_UNSUPPORTED[0], None, _UNSUPPORTED[1])) pdatas = hash_data[_UNSUPPORTED] pdatas.sort(key=lambda x: x.name) for pdata in pdatas: