Update
svn: r7130
This commit is contained in:
parent
bdee5400d1
commit
ab775a6529
@ -367,10 +367,12 @@ class EditRule(ManagedWindow.ManagedWindow):
|
||||
self.class2page = {}
|
||||
the_map = {}
|
||||
|
||||
if self.space == "Family":
|
||||
class_list = Rules.Family.editor_rule_list
|
||||
else:
|
||||
if self.space == "Person":
|
||||
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:
|
||||
arglist = class_obj.labels
|
||||
|
@ -111,6 +111,10 @@ class ShowResults(ManagedWindow.ManagedWindow):
|
||||
family = self.db.get_family_from_handle(handle)
|
||||
name = Utils.family_name(family,self.db)
|
||||
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)
|
||||
|
||||
def sort_val_from_handle(self, handle):
|
||||
@ -121,4 +125,7 @@ class ShowResults(ManagedWindow.ManagedWindow):
|
||||
name = Utils.family_name(
|
||||
self.db.get_family_from_handle(handle),self.db)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user