[Zope3-checkins] CVS: Zope3/lib/python/Schema/tests - testSchema.py:1.8
Martijn Faassen
m.faassen@vet.uu.nl
Thu, 25 Jul 2002 18:10:01 -0400
Update of /cvs-repository/Zope3/lib/python/Schema/tests
In directory cvs.zope.org:/tmp/cvs-serv32308/Schema/tests
Modified Files:
testSchema.py
Log Message:
Got rid of separate Schema class; just use interfaces now. Updated
Forms and content objects to reflect this change.
=== Zope3/lib/python/Schema/tests/testSchema.py 1.7 => 1.8 ===
from unittest import TestCase, TestSuite, main, makeSuite
from Schema.Exceptions import StopValidation, ValidationError, \
ValidationErrorsAll
-from Schema import *
+from Interface import Interface
+from Schema import Str
+from Schema import validateMapping, validateMappingAll, ErrorNames
-
-class ISchemaTest(Schema):
+class ISchemaTest(Interface):
title = Str(id="title",
title="Title",
description="Title",