[Zope-CVS] CVS: Products/Ape/lib/apelib/zodb3 - serializers.py:1.14
Shane Hathaway
shane at zope.com
Wed Jul 21 02:38:36 EDT 2004
Update of /cvs-repository/Products/Ape/lib/apelib/zodb3
In directory cvs.zope.org:/tmp/cvs-serv1879/lib/apelib/zodb3
Modified Files:
serializers.py
Log Message:
Merged sql-types-branch.
=== Products/Ape/lib/apelib/zodb3/serializers.py 1.13 => 1.14 ===
--- Products/Ape/lib/apelib/zodb3/serializers.py:1.13 Thu Jun 10 09:50:16 2004
+++ Products/Ape/lib/apelib/zodb3/serializers.py Wed Jul 21 02:38:05 2004
@@ -30,7 +30,7 @@
import ISerializer, IFullSerializationEvent, IFullDeserializationEvent
from apelib.core.events import SerializationEvent, DeserializationEvent
from apelib.core.interfaces import SerializationError
-from apelib.core.schemas import RowSequenceSchema, FieldSchema
+from apelib.core.schemas import RowSequenceSchema, ColumnSchema
def is_persistent(obj):
@@ -92,7 +92,7 @@
schema1.add('key', 'string', 1)
schema1.add('oid', 'string')
schema1.add('classification', 'classification')
- schema2 = FieldSchema('data', 'string')
+ schema2 = ColumnSchema('data', 'string')
schema = {'references': schema1, 'others': schema2}
def can_serialize(self, obj):
@@ -184,7 +184,7 @@
__implements__ = ISerializer
- schema = FieldSchema('data', 'string')
+ schema = ColumnSchema('data', 'string')
def can_serialize(self, obj):
return is_persistent(obj)
@@ -314,7 +314,7 @@
__implements__ = ISerializer
- schema = FieldSchema('mtime', 'int')
+ schema = ColumnSchema('mtime', 'int')
def can_serialize(self, obj):
return is_persistent(obj)
More information about the Zope-CVS
mailing list