[Zope-CVS] CVS: Products/AdaptableStorage/serial - DeserializationEvent.py:1.7
Shane Hathaway
shane@zope.com
Mon, 16 Dec 2002 18:27:12 -0500
Update of /cvs-repository/Products/AdaptableStorage/serial
In directory cvs.zope.org:/tmp/cvs-serv25263/serial
Modified Files:
DeserializationEvent.py
Log Message:
- loadStub() now expects "hints" that help it avoid loading the entire object
into memory. mapper_names is a good hint, but frequently unknown to the
application.
- Added modifiedInVersion() to UnmanagedJar, since PersistentExtra expects to
find it.
=== Products/AdaptableStorage/serial/DeserializationEvent.py 1.6 => 1.7 ===
--- Products/AdaptableStorage/serial/DeserializationEvent.py:1.6 Fri Dec 13 15:42:02 2002
+++ Products/AdaptableStorage/serial/DeserializationEvent.py Mon Dec 16 18:26:41 2002
@@ -38,11 +38,11 @@
assert self._aspect_name is not None
self._loaded_refs['%s:%s' % (self._aspect_name, name)] = value
- def dereference(self, name, keychain, mapper_names=None):
+ def dereference(self, name, keychain, hints=None):
"""Retrieves a referenced subobject (usually ghosted initially).
"""
kos = self.getKeyedObjectSystem()
- ob = kos.loadStub(keychain, mapper_names)
+ ob = kos.loadStub(keychain, hints)
self.notifyDeserialized(name, ob)
return ob