[Zope3-checkins] CVS: Zope3/src/zope/app/form/browser/complexsample
- widgetapi.py:1.2
Philipp von Weitershausen
philikon at philikon.de
Wed Mar 17 12:37:35 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/form/browser/complexsample
In directory cvs.zope.org:/tmp/cvs-serv14311/form/browser/complexsample
Modified Files:
widgetapi.py
Log Message:
Adjust widget imports to new locations
=== Zope3/src/zope/app/form/browser/complexsample/widgetapi.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/form/browser/complexsample/widgetapi.py:1.1 Sat Mar 13 20:11:34 2004
+++ Zope3/src/zope/app/form/browser/complexsample/widgetapi.py Wed Mar 17 12:37:04 2004
@@ -11,18 +11,20 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-
"""Alternate base classes for IBrowserWidget implementations.
The base classes provided here implement the IBrowserWidget API and
provide a simpler API that derived classes are expected to implement.
-"""
+$Id$
+"""
from xml.sax.saxutils import escape, quoteattr
+from zope.interface import implements
+from zope.i18n.messageid import MessageIDFactory
+
from zope.app.form.browser.interfaces import IBrowserWidget
from zope.app.form.interfaces import WidgetInputError
-from zope.i18n.messageid import MessageIDFactory
DOMAIN = "zope-widget-examples"
@@ -57,7 +59,7 @@
class BaseWidget(object):
- __implements__ = IBrowserWidget
+ implements(IBrowserWidget)
name = property(lambda self: self.__prefix + self.context.__name__)
required = property(lambda self: self.context.required)
More information about the Zope3-Checkins
mailing list