[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - utilities.py:1.1

Sidnei da Silva sidnei at x3ng.com.br
Thu Aug 7 17:42:00 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/interfaces
In directory cvs.zope.org:/tmp/cvs-serv24387/src/zope/app/interfaces

Added Files:
	utilities.py 
Log Message:
Added persistent schema utility and according interface

=== Added File Zope3/src/zope/app/interfaces/utilities.py ===
from zope.interface import Interface
from zope.interface.interfaces import IInterface
from zope.schema import TextLine

class ISchemaUtility(Interface):

    name = TextLine(title=u'Schema Name',
                    description=u"Schema Name")

class IMutableSchema(IInterface):

    def addField(name, field):
        """Add a field to schema.
        """

    def removeField(name):
        """Remove field from schema.
        """

    def renameField(orig_name, target_name):
        """Rename field.
        """

    def insertField(name, field, position):
        """Insert a field at position.
        """

    def moveField(name, position):
        """Move field to position.
        """




More information about the Zope3-Checkins mailing list