[Zope-CVS] CVS: Products/AdaptableStorage/zodb - RemainingState.py:1.3

Shane Hathaway shane@zope.com
Mon, 6 Jan 2003 10:36:54 -0500


Update of /cvs-repository/Products/AdaptableStorage/zodb
In directory cvs.zope.org:/tmp/cvs-serv31552/zodb

Modified Files:
	RemainingState.py 
Log Message:
Added OptionalAspect, a wrapper that disables an aspect if it can't
serialize the object.  This involved refactoring the IAspectSerializer
and IObjectSerializer interfaces.  Thanks, Christian, for discovering
the need for this.



=== Products/AdaptableStorage/zodb/RemainingState.py 1.2 => 1.3 ===
--- Products/AdaptableStorage/zodb/RemainingState.py:1.2	Tue Dec 31 16:47:52 2002
+++ Products/AdaptableStorage/zodb/RemainingState.py	Mon Jan  6 10:36:52 2003
@@ -35,6 +35,9 @@
     def getSchema(self):
         return self.schema
 
+    def canSerialize(self, object):
+        return isinstance(object, Persistent)
+
 
     def serialize(self, object, event):
         assert IFullSerializationEvent.isImplementedBy(event)