This __setstate__ function is no longer necessary, as all databases have been converted to the new schema.
This commit is contained in:
parent
069532b58c
commit
e963007ae5
|
@ -2,13 +2,6 @@ from datetime import datetime
|
||||||
|
|
||||||
|
|
||||||
class Persistent( object ):
|
class Persistent( object ):
|
||||||
def __setstate__( self, state ):
|
|
||||||
key = "_Persistent__revisions_list"
|
|
||||||
if key not in state:
|
|
||||||
state[ key ] = [ state[ "_Persistent__revision" ] ]
|
|
||||||
|
|
||||||
self.__dict__.update( state )
|
|
||||||
|
|
||||||
def __init__( self, object_id, secondary_id = None ):
|
def __init__( self, object_id, secondary_id = None ):
|
||||||
self.__object_id = object_id
|
self.__object_id = object_id
|
||||||
self.__secondary_id = secondary_id
|
self.__secondary_id = secondary_id
|
||||||
|
|
Reference in New Issue