update due to death of TransTable

svn: r4720
This commit is contained in:
Don Allingham 2005-05-27 20:56:22 +00:00
parent 9ec64315eb
commit 4e4264952a
2 changed files with 8 additions and 8 deletions

View File

@ -266,7 +266,7 @@ class EditPerson:
or (not self.lds_sealing.is_empty()): or (not self.lds_sealing.is_empty()):
Utils.bold_label(self.lds_tab) Utils.bold_label(self.lds_tab)
types = const.NameTypesMap.get_values() types = const.NameTypesMap.values()
types.sort() types.sort()
AutoComp.fill_combo(self.ntype_field,types) AutoComp.fill_combo(self.ntype_field,types)
self.write_primary_name() self.write_primary_name()

View File

@ -196,7 +196,7 @@ class AttrListBox(ReorderListBox):
def __init__(self, parent, person, obj, label, button_list): def __init__(self, parent, person, obj, label, button_list):
attrlist = const.personalAttributes attrlist = const.personal_attributes
titles = [ titles = [
# Title Sort Col, Size, Type # Title Sort Col, Size, Type
@ -219,7 +219,7 @@ class AttrListBox(ReorderListBox):
def add(self,obj): def add(self,obj):
"""Brings up the AttributeEditor for a new attribute""" """Brings up the AttributeEditor for a new attribute"""
AttrEdit.AttributeEditor(self.parent, None, self.name, AttrEdit.AttributeEditor(self.parent, None, self.name,
const.personalAttributes, const.personal_attributes,
self.edit_callback,self.parent.window) self.edit_callback,self.parent.window)
def update(self,obj): def update(self,obj):
@ -227,7 +227,7 @@ class AttrListBox(ReorderListBox):
if node: if node:
attr = self.list_model.get_object(node) attr = self.list_model.get_object(node)
AttrEdit.AttributeEditor(self.parent, attr, self.name, AttrEdit.AttributeEditor(self.parent, attr, self.name,
const.personalAttributes, const.personal_attributes,
self.edit_callback,self.parent.window) self.edit_callback,self.parent.window)
def display_data(self,attr): def display_data(self,attr):
@ -254,7 +254,7 @@ class EventListBox(ReorderListBox):
for event_ref in person.get_event_ref_list(): for event_ref in person.get_event_ref_list():
self.data.append(parent.db.get_event_from_handle(event_ref.ref)) self.data.append(parent.db.get_event_from_handle(event_ref.ref))
eventnames = const.personalEvents eventnames = const.personal_events.values()
evalues = [ evalues = [
# Title Sort Col Size, Type Argument # Title Sort Col Size, Type Argument
@ -288,7 +288,7 @@ class EventListBox(ReorderListBox):
def add(self,obj): def add(self,obj):
"""Brings up the EventEditor for a new event""" """Brings up the EventEditor for a new event"""
EventEdit.EventEditor( EventEdit.EventEditor(
self.parent, self.name, const.personalEvents, self.parent, self.name, const.personal_events,
const.personal_events, None, None, 0, const.personal_events, None, None, 0,
self.edit_callback, noedit=self.db.readonly) self.edit_callback, noedit=self.db.readonly)
@ -298,7 +298,7 @@ class EventListBox(ReorderListBox):
return return
event = self.list_model.get_object(node) event = self.list_model.get_object(node)
EventEdit.EventEditor( EventEdit.EventEditor(
self.parent, self.name, const.personalEvents, self.parent, self.name, const.personal_events,
const.personal_events, event, None, 0, const.personal_events, event, None, 0,
self.edit_callback, noedit=self.db.readonly) self.edit_callback, noedit=self.db.readonly)
@ -331,7 +331,7 @@ class NameListBox(ReorderListBox):
def __init__(self,parent,person,obj,label,button_list): def __init__(self,parent,person,obj,label,button_list):
surnames = parent.db.get_surname_list() surnames = parent.db.get_surname_list()
types = const.NameTypesMap.get_values() types = const.NameTypesMap.values()
types.sort() types.sort()
titles = [ titles = [