[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/component - interfacefield.py:1.1.2.1
Jim Fulton
jim@zope.com
Wed, 25 Dec 2002 08:27:33 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/component
In directory cvs.zope.org:/tmp/cvs-serv9989/src/zope/app/interfaces/component
Added Files:
Tag: NameGeddon-branch
interfacefield.py
Log Message:
Gor zope running again!
I haven't tested everything.
(Yes, we need functional tests. Maybe this week).
Good enough to merge into trunk.
=== Added File Zope3/src/zope/app/interfaces/component/interfacefield.py ===
##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""These are the interfaces for the common fields.
$Id: interfacefield.py,v 1.1.2.1 2002/12/25 13:27:32 jim Exp $
"""
from zope.schema import Field
from zope.schema.interfaces import IValueSet
from zope.interface import Interface
class IInterfaceField(IValueSet):
u"""Fields with Interfaces as values
"""
type = Field(title=u"Base type",
description=u"All values must extend (or be) this type",
default=Interface,
)