[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/utilities -
schema.py:1.4
Sidnei da Silva
cvs-admin at zope.org
Fri Oct 31 09:57:10 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/interfaces/utilities
In directory cvs.zope.org:/tmp/cvs-serv17576
Modified Files:
schema.py
Log Message:
Separate interface into IRead and IWrite
=== Zope3/src/zope/app/interfaces/utilities/schema.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/interfaces/utilities/schema.py:1.3 Sun Aug 17 02:07:10 2003
+++ Zope3/src/zope/app/interfaces/utilities/schema.py Fri Oct 31 09:57:09 2003
@@ -26,13 +26,17 @@
class ISchemaAdding(IAdding):
pass
-class IMutableSchema(IInterface):
+class IReadMutableSchema(IInterface):
"""This object represents an interface/schema that can be edited by
managing the fields it contains."""
def getName(name):
"""Get the name of the schema."""
+class IWriteMutableSchema(Interface):
+ """This object represents an interface/schema that can be edited by
+ managing the fields it contains."""
+
def setName(name):
"""Set the name of the schema."""
@@ -64,6 +68,10 @@
If the position does not make sense, i.e. a negative number of a
number larger than len(self), then an error is raised.
"""
+
+class IMutableSchema(IReadMutableSchema, IWriteMutableSchema):
+ """This object represents an interface/schema that can be edited by
+ managing the fields it contains."""
class IMutableSchemaField(IInterfaceField):
"""A type of Field that has an IMutableSchema as its value."""
More information about the Zope3-Checkins
mailing list