[Zope-CVS] CVS: Products/Ape/lib/apelib/tests - testserialization.py:1.4

Shane Hathaway shane at zope.com
Sat Aug 9 12:16:41 EDT 2003


Update of /cvs-repository/Products/Ape/lib/apelib/tests
In directory cvs.zope.org:/tmp/cvs-serv21364/tests

Modified Files:
	testserialization.py 
Log Message:
Made classifications accessible to load and store events.

This is useful for allowing gateways to change behavior based on the class
of the instance being (de)serialized.  Gateways that expect a fixed class
schema will expect this.



=== Products/Ape/lib/apelib/tests/testserialization.py 1.3 => 1.4 ===
--- Products/Ape/lib/apelib/tests/testserialization.py:1.3	Mon May 26 15:33:16 2003
+++ Products/Ape/lib/apelib/tests/testserialization.py	Sat Aug  9 11:16:36 2003
@@ -63,10 +63,10 @@
         mapper = self.root_mapper.getSubMapper('test_mapper')
         event = SerializationEvent(kos, mapper, ('',), ob)
         full_state = mapper.getSerializer().serialize(ob, event)
-        event = StoreEvent(mapper, ('',), self.conns)
+        event = StoreEvent(mapper, ('',), self.conns, None)
         mapper.getGateway().store(event, full_state)
 
-        event = LoadEvent(mapper, ('',), self.conns)
+        event = LoadEvent(mapper, ('',), self.conns, None)
         full_state, serial = mapper.getGateway().load(event)
         ob2 = PersistentMapping()
         event = DeserializationEvent(kos, mapper, ('',), ob2)
@@ -97,11 +97,11 @@
         mapper = self.root_mapper.getSubMapper('test_mapper_2')
         event = SerializationEvent(kos, mapper, ('',), ob)
         full_state = mapper.getSerializer().serialize(ob, event)
-        event = StoreEvent(mapper, ('',), self.conns)
+        event = StoreEvent(mapper, ('',), self.conns, None)
         mapper.getGateway().store(event, full_state)
 
         # Now load the state into a different object
-        event = LoadEvent(mapper, ('',), self.conns)
+        event = LoadEvent(mapper, ('',), self.conns, None)
         full_state, serial = mapper.getGateway().load(event)
         ob2 = PersistentMapping()
         event = DeserializationEvent(kos, mapper, ('',), ob2)




More information about the Zope-CVS mailing list