Update
svn: r5372
This commit is contained in:
parent
aee6aa6ccb
commit
e43db997f9
@ -539,19 +539,19 @@ class EditPlace:
|
|||||||
if not data:
|
if not data:
|
||||||
return
|
return
|
||||||
(data_type,handle) = data[0]
|
(data_type,handle) = data[0]
|
||||||
if data_type == 2:
|
import EventEdit
|
||||||
import EventEdit
|
event = self.db.get_event_from_handle(handle)
|
||||||
event = self.db.get_event_from_handle(handle)
|
event_name = event.get_name()
|
||||||
event_name = event.get_name()
|
if data_type == 0:
|
||||||
if const.family_events.has_key(event_name):
|
if event_name in ["Birth","Death"]:
|
||||||
EventEdit.FamilyEventEditor(
|
|
||||||
self,", ", event, None, 0, None, None, self.db.readonly)
|
|
||||||
elif const.personal_events.has_key(event_name):
|
|
||||||
EventEdit.PersonEventEditor(
|
|
||||||
self,", ", event, None, 0, None, None, self.db.readonly)
|
|
||||||
elif event_name in ["Birth","Death"]:
|
|
||||||
EventEdit.PersonEventEditor(
|
EventEdit.PersonEventEditor(
|
||||||
self,", ", event, None, 1, None, None, self.db.readonly)
|
self,", ", event, None, 1, None, None, self.db.readonly)
|
||||||
|
else:
|
||||||
|
EventEdit.PersonEventEditor(
|
||||||
|
self,", ", event, None, 0, None, None, self.db.readonly)
|
||||||
|
elif data_type == 1:
|
||||||
|
EventEdit.FamilyEventEditor(
|
||||||
|
self,", ", event, None, 0, None, None, self.db.readonly)
|
||||||
|
|
||||||
def display_references(self):
|
def display_references(self):
|
||||||
place_handle = self.place.get_handle()
|
place_handle = self.place.get_handle()
|
||||||
@ -585,7 +585,7 @@ class EditPlace:
|
|||||||
ename = event.get_name()
|
ename = event.get_name()
|
||||||
self.model.add(
|
self.model.add(
|
||||||
[_("Personal Event"),pname,gramps_id,ename],
|
[_("Personal Event"),pname,gramps_id,ename],
|
||||||
(2,event_handle))
|
(0,event_handle))
|
||||||
self.any_refs = True
|
self.any_refs = True
|
||||||
self.data = self.cursor.next()
|
self.data = self.cursor.next()
|
||||||
if gtk.events_pending():
|
if gtk.events_pending():
|
||||||
@ -624,7 +624,7 @@ class EditPlace:
|
|||||||
ename = event.get_name()
|
ename = event.get_name()
|
||||||
self.model.add(
|
self.model.add(
|
||||||
[_("Family Event"),fname,gramps_id,ename],
|
[_("Family Event"),fname,gramps_id,ename],
|
||||||
(2,event_handle))
|
(1,event_handle))
|
||||||
self.any_refs = True
|
self.any_refs = True
|
||||||
self.data = self.cursor.next()
|
self.data = self.cursor.next()
|
||||||
if gtk.events_pending():
|
if gtk.events_pending():
|
||||||
|
Loading…
Reference in New Issue
Block a user