[Zope-CVS] CVS: Products/AdaptableStorage/mapper - MapperEvent.py:1.3 ObjectGateway.py:1.3
Shane Hathaway
shane@zope.com
Sat, 1 Mar 2003 10:24:11 -0500
Update of /cvs-repository/Products/AdaptableStorage/mapper
In directory cvs.zope.org:/tmp/cvs-serv19690/mapper
Modified Files:
MapperEvent.py ObjectGateway.py
Log Message:
Renamed the 'serial' concept to 'hash' because it's easier to explain in
documentation. Also expanded ILoadEvent so that gateways can return the
hash without loading the entire object.
=== Products/AdaptableStorage/mapper/MapperEvent.py 1.2 => 1.3 ===
--- Products/AdaptableStorage/mapper/MapperEvent.py:1.2 Thu Jan 9 09:34:02 2003
+++ Products/AdaptableStorage/mapper/MapperEvent.py Sat Mar 1 10:23:40 2003
@@ -37,6 +37,10 @@
"""Returns the keychain of the object being (de)serialized."""
return self._keychain
+ def getKey(self):
+ """Returns the last element of the keychain."""
+ return self._keychain[-1]
+
def makeKeychain(self, name, stored):
kcg = self.getObjectMapper().getKeychainGenerator()
return kcg.makeKeychain(self, name, stored)
@@ -46,6 +50,8 @@
"""Object loading event."""
__implements__ = ILoadEvent
+
+ hash_only = 0
class StoreEvent (MapperEvent):
=== Products/AdaptableStorage/mapper/ObjectGateway.py 1.2 => 1.3 ===
--- Products/AdaptableStorage/mapper/ObjectGateway.py:1.2 Fri Feb 21 11:08:09 2003
+++ Products/AdaptableStorage/mapper/ObjectGateway.py Sat Mar 1 10:23:40 2003
@@ -16,7 +16,6 @@
$Id$
"""
-
from interfaces.public import IGateway