svn: r7130
This commit is contained in:
Alex Roitman 2006-08-05 04:18:19 +00:00
parent bdee5400d1
commit ab775a6529
2 changed files with 12 additions and 3 deletions

View File

@ -367,10 +367,12 @@ class EditRule(ManagedWindow.ManagedWindow):
self.class2page = {} self.class2page = {}
the_map = {} the_map = {}
if self.space == "Family": if self.space == "Person":
class_list = Rules.Family.editor_rule_list
else:
class_list = Rules.Person.editor_rule_list class_list = Rules.Person.editor_rule_list
elif self.space == "Family":
class_list = Rules.Family.editor_rule_list
elif self.space == "Event":
class_list = Rules.Event.editor_rule_list
for class_obj in class_list: for class_obj in class_list:
arglist = class_obj.labels arglist = class_obj.labels

View File

@ -111,6 +111,10 @@ class ShowResults(ManagedWindow.ManagedWindow):
family = self.db.get_family_from_handle(handle) family = self.db.get_family_from_handle(handle)
name = Utils.family_name(family,self.db) name = Utils.family_name(family,self.db)
gid = family.get_gramps_id() gid = family.get_gramps_id()
elif self.space == 'Event':
event = self.db.get_event_from_handle(handle)
name = event.get_description()
gid = event.get_gramps_id()
return (name,gid) return (name,gid)
def sort_val_from_handle(self, handle): def sort_val_from_handle(self, handle):
@ -121,4 +125,7 @@ class ShowResults(ManagedWindow.ManagedWindow):
name = Utils.family_name( name = Utils.family_name(
self.db.get_family_from_handle(handle),self.db) self.db.get_family_from_handle(handle),self.db)
sortname = locale.strxfrm(name) sortname = locale.strxfrm(name)
elif self.space == 'Event':
name = self.db.get_event_from_handle(handle).get_description()
sortname = locale.strxfrm(name)
return (sortname,handle) return (sortname,handle)