[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/browser - form.py:1.10
Jim Fulton
jim@zope.com
Thu, 22 May 2003 18:49:46 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces/browser
In directory cvs.zope.org:/tmp/cvs-serv12720/src/zope/app/interfaces/browser
Modified Files:
form.py
Log Message:
Moved the setPrefix method from IBrowserWidget to IWidget.
Deprecated the browser widget render and renderHidden methods.
=== Zope3/src/zope/app/interfaces/browser/form.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/interfaces/browser/form.py:1.9 Tue May 20 12:10:28 2003
+++ Zope3/src/zope/app/interfaces/browser/form.py Thu May 22 18:49:45 2003
@@ -83,17 +83,6 @@
default value and so on.
"""
- def setPrefix(self, prefix):
- """Set the form-variable name prefix used for the widget
-
- The widget will define its own form variable names by
- concatinating the prefix and the field name using a dot. For
- example, with a prefix of "page" and a field name of "title",
- a form name of "page.title" will be used. A widget may use
- multiple form fields. If so, it should add distinguishing
- suffixes to the prefix and field name.
- """
-
def __call__():
"""Render the widget
"""
@@ -110,20 +99,6 @@
For example:
<div class="label">label</div><div class="field">field</div>
- """
-
- # XXX The following two methods are being supported for backward
- # compatability. They are deprecated and will be refactored away
- # eventually.
-
- def render(value):
- """Renders this widget as HTML using property values in field.
-
- The value if given will be used as the default value for the widget.
- """
-
- def renderHidden(value):
- """Renders this widget as a hidden field.
"""