[Zope3-checkins] CVS: Zope3/src/zope/schema - _bootstrapfields.py:1.16 _field.py:1.14 _schema.py:1.7 accessors.py:1.4
Viktorija Zaksiene
ryzaja@codeworks.lt
Mon, 12 May 2003 06:03:12 -0400
Update of /cvs-repository/Zope3/src/zope/schema
In directory cvs.zope.org:/tmp/cvs-serv32410
Modified Files:
_bootstrapfields.py _field.py _schema.py accessors.py
Log Message:
Cleanup: removed unused imports and whitespaces.
=== Zope3/src/zope/schema/_bootstrapfields.py 1.15 => 1.16 ===
--- Zope3/src/zope/schema/_bootstrapfields.py:1.15 Sat May 3 12:36:05 2003
+++ Zope3/src/zope/schema/_bootstrapfields.py Mon May 12 06:02:41 2003
@@ -108,7 +108,7 @@
names = {} # used as set of property names, ignoring values
for interface in providedBy(self):
names.update(getFields(interface))
-
+
# order will be different always, don't compare it
if 'order' in names:
del names['order']
=== Zope3/src/zope/schema/_field.py 1.13 => 1.14 ===
--- Zope3/src/zope/schema/_field.py:1.13 Sat May 3 12:36:05 2003
+++ Zope3/src/zope/schema/_field.py Mon May 12 06:02:41 2003
@@ -24,8 +24,8 @@
from zope.schema.interfaces import ValidationError
from zope.schema.errornames import WrongContainedType, WrongType
-from zope.schema.interfaces import IField, IContainer, IIterable, IOrderable
-from zope.schema.interfaces import IMinMaxLen, IEnumerated, IText, ITextLine
+from zope.schema.interfaces import IField
+from zope.schema.interfaces import IMinMaxLen, IText, ITextLine
from zope.schema.interfaces import ISourceText
from zope.schema.interfaces import IInterfaceField
from zope.schema.interfaces import IBool, IInt, IBytes, IBytesLine, IFloat
=== Zope3/src/zope/schema/_schema.py 1.6 => 1.7 ===
--- Zope3/src/zope/schema/_schema.py:1.6 Mon Jan 27 21:56:45 2003
+++ Zope3/src/zope/schema/_schema.py Mon May 12 06:02:41 2003
@@ -14,8 +14,6 @@
"""
$Id$
"""
-from zope.interface import Interface
-from zope.schema.interfaces import ValidationError
def getFieldNames(schema):
"""Return a list of all the Field names in a schema.
=== Zope3/src/zope/schema/accessors.py 1.3 => 1.4 ===
--- Zope3/src/zope/schema/accessors.py:1.3 Sat May 3 12:36:05 2003
+++ Zope3/src/zope/schema/accessors.py Mon May 12 06:02:41 2003
@@ -36,14 +36,11 @@
$Id$
"""
-
-
from __future__ import generators
from zope.interface import providedBy
-from zope.interface import directlyProvides
from zope.interface.interface import Method
-
+
class FieldReadAccessor(Method):
"""Field read accessor
@@ -119,4 +116,4 @@
reader.writer = writer
yield writer
-
+