From 8ac91ea894d3c8b0b66fc042d042751aa0dbf457 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 27 May 2005 20:56:22 +0000 Subject: [PATCH] update due to death of TransTable svn: r4720 --- gramps2/src/EditPerson.py | 2 +- gramps2/src/ListBox.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gramps2/src/EditPerson.py b/gramps2/src/EditPerson.py index 355719d94..6a1e4167b 100644 --- a/gramps2/src/EditPerson.py +++ b/gramps2/src/EditPerson.py @@ -266,7 +266,7 @@ class EditPerson: or (not self.lds_sealing.is_empty()): Utils.bold_label(self.lds_tab) - types = const.NameTypesMap.get_values() + types = const.NameTypesMap.values() types.sort() AutoComp.fill_combo(self.ntype_field,types) self.write_primary_name() diff --git a/gramps2/src/ListBox.py b/gramps2/src/ListBox.py index 643b54ee4..d9c870002 100644 --- a/gramps2/src/ListBox.py +++ b/gramps2/src/ListBox.py @@ -196,7 +196,7 @@ class AttrListBox(ReorderListBox): def __init__(self, parent, person, obj, label, button_list): - attrlist = const.personalAttributes + attrlist = const.personal_attributes titles = [ # Title Sort Col, Size, Type @@ -219,7 +219,7 @@ class AttrListBox(ReorderListBox): def add(self,obj): """Brings up the AttributeEditor for a new attribute""" AttrEdit.AttributeEditor(self.parent, None, self.name, - const.personalAttributes, + const.personal_attributes, self.edit_callback,self.parent.window) def update(self,obj): @@ -227,7 +227,7 @@ class AttrListBox(ReorderListBox): if node: attr = self.list_model.get_object(node) AttrEdit.AttributeEditor(self.parent, attr, self.name, - const.personalAttributes, + const.personal_attributes, self.edit_callback,self.parent.window) def display_data(self,attr): @@ -254,7 +254,7 @@ class EventListBox(ReorderListBox): for event_ref in person.get_event_ref_list(): self.data.append(parent.db.get_event_from_handle(event_ref.ref)) - eventnames = const.personalEvents + eventnames = const.personal_events.values() evalues = [ # Title Sort Col Size, Type Argument @@ -288,7 +288,7 @@ class EventListBox(ReorderListBox): def add(self,obj): """Brings up the EventEditor for a new event""" EventEdit.EventEditor( - self.parent, self.name, const.personalEvents, + self.parent, self.name, const.personal_events, const.personal_events, None, None, 0, self.edit_callback, noedit=self.db.readonly) @@ -298,7 +298,7 @@ class EventListBox(ReorderListBox): return event = self.list_model.get_object(node) EventEdit.EventEditor( - self.parent, self.name, const.personalEvents, + self.parent, self.name, const.personal_events, const.personal_events, event, None, 0, self.edit_callback, noedit=self.db.readonly) @@ -331,7 +331,7 @@ class NameListBox(ReorderListBox): def __init__(self,parent,person,obj,label,button_list): surnames = parent.db.get_surname_list() - types = const.NameTypesMap.get_values() + types = const.NameTypesMap.values() types.sort() titles = [