2006-04-27 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsDbBase.py: fix custom event storing * src/GrampsDb/_GrampsBSDDB.py: fix custom event storing * src/Editors/_EditEventRef.py: fix custom event storing * src/Editors/_EditEvent.py: fix custom event storing * src/GrampsWidgets.py: fix custom data types * src/AutoComp.py: fix custom data types svn: r6480
This commit is contained in:
@ -174,8 +174,13 @@ class StandardCustomSelector:
|
||||
index = index + 1
|
||||
|
||||
if self.additional:
|
||||
for (value,data) in self.additional:
|
||||
self.store.append(row=[value,data])
|
||||
for event_type in self.additional:
|
||||
if type(event_type) == str:
|
||||
self.store.append(row=[self.custom_key, event_type])
|
||||
elif type(event_type) == str:
|
||||
self.store.append(row=[event_type[0], event_type[1]])
|
||||
else:
|
||||
self.store.append(row=[int(event_type), str(event_type[1])])
|
||||
if key == self.active_key:
|
||||
self.active_index = index
|
||||
index = index + 1
|
||||
|
Reference in New Issue
Block a user