[Zope3-checkins] CVS: Zope3/src/zope/app/form - widget.py:1.10
Philipp von Weitershausen
philikon at philikon.de
Fri Jan 16 08:09:37 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/form
In directory cvs.zope.org:/tmp/cvs-serv23976/app/form
Modified Files:
widget.py
Log Message:
CustomWidget is CustomWidgetFactory now. See the following proposal email
for more information:
http://mail.zope.org/pipermail/zope3-dev/2004-January/009265.html
Backward compatability is kept for one month.
=== Zope3/src/zope/app/form/widget.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/form/widget.py:1.9 Fri Sep 26 15:53:34 2003
+++ Zope3/src/zope/app/form/widget.py Fri Jan 16 08:09:07 2004
@@ -99,9 +99,9 @@
required = property(lambda self: self.context.required)
-# XXX CustomWidget *should* be called CustomWidgetFactory
-class CustomWidget:
- """Custom Widget."""
+class CustomWidgetFactory:
+ """Custom Widget Factory.
+ """
implements(IViewFactory)
def __init__(self, *args, **kw):
@@ -119,3 +119,5 @@
setattr(instance, item[0], item[1])
return instance
+# XXX backward compatability, will be removed in a month (2004-02-16)
+CustomWidget = CustomWidgetFactory
More information about the Zope3-Checkins
mailing list