[Zope-CVS] CVS: Products/AdaptableStorage/mapper_std - MappingGateway.py:1.3

Shane Hathaway shane@zope.com
Sat, 1 Mar 2003 10:24:12 -0500


Update of /cvs-repository/Products/AdaptableStorage/mapper_std
In directory cvs.zope.org:/tmp/cvs-serv19690/mapper_std

Modified Files:
	MappingGateway.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_std/MappingGateway.py 1.2 => 1.3 ===
--- Products/AdaptableStorage/mapper_std/MappingGateway.py:1.2	Thu Jan  9 09:34:05 2003
+++ Products/AdaptableStorage/mapper_std/MappingGateway.py	Sat Mar  1 10:23:41 2003
@@ -41,6 +41,6 @@
             raise NoStateFoundError(keychain)
 
     def store(self, event, data):
-        serial = time.time()
-        self.data[event.getKeychain()] = (data, serial)
-        return serial
+        h = time.time()
+        self.data[event.getKeychain()] = (data, h)
+        return h