[Zope-CVS] CVS: Products/AdaptableStorage/serial/interfaces - IEventBase.py:1.2 ISerializationEvent.py:1.2

Shane Hathaway shane@zope.com
Wed, 4 Dec 2002 23:18:39 -0500


Update of /cvs-repository/Products/AdaptableStorage/serial/interfaces
In directory cvs.zope.org:/tmp/cvs-serv26322/serial/interfaces

Modified Files:
	IEventBase.py ISerializationEvent.py 
Log Message:
- Switched to use of the "remaining state" aspect, enabling storage of
any extra data found on ZODB objects.  Fixed bugs related to this.

- Made sure Zope 2 objects store their classification.

- Modified the serialization event interface a little to allow more
control over automatic references.  This needs work still.

- MetaTypeClassifier is now also an IAspectSerializer, making it
possible to delegate classification details to the classifier.



=== Products/AdaptableStorage/serial/interfaces/IEventBase.py 1.1 => 1.2 ===
--- Products/AdaptableStorage/serial/interfaces/IEventBase.py:1.1	Wed Nov 27 13:37:06 2002
+++ Products/AdaptableStorage/serial/interfaces/IEventBase.py	Wed Dec  4 23:18:08 2002
@@ -30,8 +30,10 @@
         """Returns the object mapper for the object being (de)serialized."""
 
     def getKey():
-        """Returns the key of the object being serialized/deserialized."""
+        """Returns the key of the object being (de)serialized."""
 
     def getObject():
-        """Returns the object being serialized."""
+        """Returns the object being (de)serialized."""
 
+    def getKeyedObjectSystem():
+        """Returns the IKeyedObjectSystem that generated the event."""


=== Products/AdaptableStorage/serial/interfaces/ISerializationEvent.py 1.1 => 1.2 ===
--- Products/AdaptableStorage/serial/interfaces/ISerializationEvent.py:1.1	Wed Nov 27 13:37:06 2002
+++ Products/AdaptableStorage/serial/interfaces/ISerializationEvent.py	Wed Dec  4 23:18:08 2002
@@ -26,7 +26,7 @@
     internal and external references.
     """
 
-    def notifySerialized(name, value, attribute=0):
+    def notifySerialized(name, value, is_attribute):
         """Indicates that a named internal subobject was serialized.
 
         This allows a 'remainder pickler' to refer to subobjects by name.
@@ -38,8 +38,15 @@
         """Returns a classification and mapper_name given a subobject.
         """
 
-    def notifySerializedRef(name, value, attribute=0,
-                            mapper_name=None, key=None, stored_key=0):
+    def identifyObject(value):
+        """
+        """
+
+    def makeKey(mapper_name, name, stored_key=0):
+        """
+        """
+
+    def notifySerializedRef(name, value, is_attribute, mapper_name, key):
         """Indicates that a reference to an external subobject was serialized.
 
         TODO: write more here. ;-)