[Zope-CVS] CVS: Products/Ape/lib/apelib/zope2 -
ofsserial.py:1.13.2.1 scripts.py:1.5.2.1
Shane Hathaway
shane at zope.com
Tue Jul 20 22:25:59 EDT 2004
Update of /cvs-repository/Products/Ape/lib/apelib/zope2
In directory cvs.zope.org:/tmp/cvs-serv32139/zope2
Modified Files:
Tag: sql-types-branch
ofsserial.py scripts.py
Log Message:
Checkpoint. Started using common schemas for table specifications.
Renamed FieldSchema to ColumnSchema and got rid of RowSchema. The new
names are less abstract. This should make them easier to understand.
=== Products/Ape/lib/apelib/zope2/ofsserial.py 1.13 => 1.13.2.1 ===
--- Products/Ape/lib/apelib/zope2/ofsserial.py:1.13 Fri Mar 26 10:52:49 2004
+++ Products/Ape/lib/apelib/zope2/ofsserial.py Tue Jul 20 22:25:59 2004
@@ -26,7 +26,7 @@
from OFS.PropertyManager import PropertyManager
from apelib.core.interfaces import ISerializer, SerializationError
-from apelib.core.schemas import FieldSchema, RowSequenceSchema
+from apelib.core.schemas import ColumnSchema, RowSequenceSchema
from apelib.core.serializers import OptionalSerializer
from apelib.zodb3.serializers import find_unmanaged
@@ -50,7 +50,7 @@
__implements__ = ISerializer
- schema = FieldSchema('data', 'string')
+ schema = ColumnSchema('data', 'string')
def can_serialize(self, object):
return isinstance(object, File)
@@ -145,7 +145,7 @@
__implements__ = ISerializer
- schema = FieldSchema('id', 'string')
+ schema = ColumnSchema('id', 'string')
def can_serialize(self, obj):
return 1
=== Products/Ape/lib/apelib/zope2/scripts.py 1.5 => 1.5.2.1 ===
--- Products/Ape/lib/apelib/zope2/scripts.py:1.5 Sat Mar 20 01:34:25 2004
+++ Products/Ape/lib/apelib/zope2/scripts.py Tue Jul 20 22:25:59 2004
@@ -28,7 +28,7 @@
Bucket = lambda: {}
from apelib.core.interfaces import ISerializer
-from apelib.core.schemas import FieldSchema, RowSequenceSchema
+from apelib.core.schemas import ColumnSchema, RowSequenceSchema
class PythonScriptSerializer:
@@ -41,7 +41,7 @@
__implements__ = ISerializer
- schema = FieldSchema('data', 'string')
+ schema = ColumnSchema('data', 'string')
def can_serialize(self, obj):
return isinstance(obj, PythonScript)
@@ -83,7 +83,7 @@
__implements__ = ISerializer
- schema = FieldSchema('data', 'string')
+ schema = ColumnSchema('data', 'string')
params_re = re.compile(r'\s*<params>(.*)</params>\s*\n', re.I | re.S)
More information about the Zope-CVS
mailing list