2006-04-19 Alex Roitman <shura@gramps-project.org>
* src/RelLib/_Event.py: Add "personal" attribute to events. svn: r6367
This commit is contained in:
parent
ca5e698290
commit
60d1659c9a
@ -1,3 +1,6 @@
|
|||||||
|
2006-04-19 Alex Roitman <shura@gramps-project.org>
|
||||||
|
* src/RelLib/_Event.py: Add "personal" attribute to events.
|
||||||
|
|
||||||
2006-04-18 Don Allingham <don@gramps-project.org>
|
2006-04-18 Don Allingham <don@gramps-project.org>
|
||||||
* src/Editors/_EditName.py: fix call for MonitoredDataType
|
* src/Editors/_EditName.py: fix call for MonitoredDataType
|
||||||
* src/Editors/_EditChildRef.py: fix call for MonitoredDataType
|
* src/Editors/_EditChildRef.py: fix call for MonitoredDataType
|
||||||
|
@ -123,10 +123,12 @@ class Event(PrimaryObject,SourceBase,NoteBase,MediaBase,DateBase,PlaceBase):
|
|||||||
self.description = source.description
|
self.description = source.description
|
||||||
self.type = source.type
|
self.type = source.type
|
||||||
self.cause = source.cause
|
self.cause = source.cause
|
||||||
|
self.personal = source.personal
|
||||||
else:
|
else:
|
||||||
self.description = ""
|
self.description = ""
|
||||||
self.type = (Event.CUSTOM,"")
|
self.type = (Event.CUSTOM,"")
|
||||||
self.cause = ""
|
self.cause = ""
|
||||||
|
self.personal = True
|
||||||
|
|
||||||
def serialize(self):
|
def serialize(self):
|
||||||
"""
|
"""
|
||||||
@ -150,7 +152,7 @@ class Event(PrimaryObject,SourceBase,NoteBase,MediaBase,DateBase,PlaceBase):
|
|||||||
SourceBase.serialize(self),
|
SourceBase.serialize(self),
|
||||||
NoteBase.serialize(self),
|
NoteBase.serialize(self),
|
||||||
MediaBase.serialize(self),
|
MediaBase.serialize(self),
|
||||||
self.change, self.marker, self.private)
|
self.change, self.marker, self.private, self.personal)
|
||||||
|
|
||||||
def unserialize(self,data):
|
def unserialize(self,data):
|
||||||
"""
|
"""
|
||||||
@ -162,8 +164,9 @@ class Event(PrimaryObject,SourceBase,NoteBase,MediaBase,DateBase,PlaceBase):
|
|||||||
@type data: tuple
|
@type data: tuple
|
||||||
"""
|
"""
|
||||||
(self.handle, self.gramps_id, self.type, date,
|
(self.handle, self.gramps_id, self.type, date,
|
||||||
self.description, self.place, self.cause, source_list, note,
|
self.description, self.place, self.cause,
|
||||||
media_list, self.change, self.marker, self.private) = data
|
source_list, note, media_list,
|
||||||
|
self.change, self.marker, self.private, self.personal) = data
|
||||||
|
|
||||||
DateBase.unserialize(self,date)
|
DateBase.unserialize(self,date)
|
||||||
MediaBase.unserialize(self,media_list)
|
MediaBase.unserialize(self,media_list)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user