[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Formulator/Widgets - IWidget.py:1.2 Widget.py:1.2 __init__.py:1.2 widgets.zcml:1.2
Jim Fulton
jim@zope.com
Mon, 10 Jun 2002 19:28:20 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/Formulator/Widgets
In directory cvs.zope.org:/tmp/cvs-serv17445/lib/python/Zope/App/Formulator/Widgets
Added Files:
IWidget.py Widget.py __init__.py widgets.zcml
Log Message:
Merged Zope-3x-branch into newly forked Zope3 CVS Tree.
=== Zope3/lib/python/Zope/App/Formulator/Widgets/IWidget.py 1.1 => 1.2 ===
+#
+# Copyright (c) 2001, 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.
+#
+##############################################################################
+"""
+
+$Id$
+"""
+
+from Zope.ComponentArchitecture.IContextDependent import IContextDependent
+
+class IWidget(IContextDependent):
+ """Generically describes the behavior of a widget.
+
+ The widget defines a list of propertyNames, which describes
+ what properties of the widget are available to use for
+ constructing the widget render output.
+
+ Note that this level must be still presentation independent.
+ """
+
+ def getValue(name):
+ """Look up a Widget setting (value) by name."""
=== Zope3/lib/python/Zope/App/Formulator/Widgets/Widget.py 1.1 => 1.2 ===
=== Zope3/lib/python/Zope/App/Formulator/Widgets/__init__.py 1.1 => 1.2 ===
=== Zope3/lib/python/Zope/App/Formulator/Widgets/widgets.zcml 1.1 => 1.2 ===
+ xmlns='http://namespaces.zope.org/zope'
+>
+
+ <include package="Zope.App.Formulator.Widgets.Browser" file="browser.zcml" />
+ <include package="Zope.App.Formulator.Widgets.XUL" file="xul.zcml" />
+
+</zopeConfigure>