Commit 9ea3cc2a authored by Jim Fulton's avatar Jim Fulton

Defining a multable attr in a class is insane.

parent e8ba3234
......@@ -92,7 +92,14 @@ def pdumps(obj):
class PackableStorageBase:
# We keep a cache of object ids to instances so that the unpickler can
# easily return any persistent object.
_cache = {}
@property
def _cache(self):
try:
return self.__cache
except AttributeError:
self.__cache = {}
return self.__cache
def _newobj(self):
# This is a convenience method to create a new persistent Object
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment