Inherits from
- NewUnpickler: enthought.persistence.versioned_unpickler.NewUnpickler
Method summary
- __init__(self, file, updater = None)
- add_updater(self, module, name, klass)
- backup_setstate(self, module, klass)
- find_class(self, module, name)
- import_name(self, module, name)
Methods
- __init__(self, file, updater = None)
- add_updater(self, module, name, klass)
If there is an updater defined for this class we will add it to the class as the __setstate__ method.
- backup_setstate(self, module, klass)
If the class has a user defined __setstate__ we back it up.
- find_class(self, module, name)
Overridden method from Unpickler.
NB __setstate__ is not called until later.
- import_name(self, module, name)
If the class is needed for the latest version of the application then it should presumably exist.
If the class no longer exists then we should perhaps return a proxy of the class.
If the persisted file is at v1 say and the application is at v3 then objects that are required for v1 and v2 do not have to exist they only need to be placeholders for the state during an upgrade.