add instance attribute ref to __slots__ in eventref -- bug 2210
svn: r10816
This commit is contained in:
parent
5e6e48cdb1
commit
4e73de8987
@ -49,12 +49,13 @@ class EventRef(SecondaryObject, PrivacyBase, NoteBase, AttributeBase, RefBase):
|
|||||||
to the refereneced event.
|
to the refereneced event.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__slots__=('__role')
|
__slots__=('__role','ref')
|
||||||
|
|
||||||
def __getstate__(self):
|
def __getstate__(self):
|
||||||
return{'__role': self.__role}
|
return{'__role': self.__role,'ref': self.ref}
|
||||||
def __setstate__(self,dict_):
|
def __setstate__(self,dict_):
|
||||||
self.__role = dict_['__role']
|
self.__role = dict_['__role']
|
||||||
|
self.ref = dict_['ref']
|
||||||
|
|
||||||
def __init__(self, source=None):
|
def __init__(self, source=None):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user