[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/__init__.py
Removed trailing whitespace.
Gintautas Miliauskas
gintas at pov.lt
Wed Sep 15 15:07:08 EDT 2004
Log message for revision 27540:
Removed trailing whitespace.
Changed:
U Zope3/trunk/src/zope/app/form/__init__.py
-=-
Modified: Zope3/trunk/src/zope/app/form/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/form/__init__.py 2004-09-15 19:05:09 UTC (rev 27539)
+++ Zope3/trunk/src/zope/app/form/__init__.py 2004-09-15 19:07:08 UTC (rev 27540)
@@ -24,32 +24,32 @@
class Widget(object):
"""Mixin class providing functionality common across widget types."""
-
+
implements(IWidget)
_prefix = 'field.'
_data_marker = object()
_data = _data_marker
-
+
visible = True
def __init__(self, context, request):
self.context = context
self.request = request
self.name = self._prefix + context.__name__
-
+
label = property(lambda self: self._translate(
self.context.title))
-
+
hint = property(lambda self: self._translate(
self.context.description))
-
+
def _translate(self, text):
return translate(text, "zope", context=self.request, default=text)
-
+
def _renderedValueSet(self):
"""Returns ``True`` if the the widget's rendered value has been set.
-
+
This is a convenience method that widgets can use to check whether
or not `setRenderedValue` was called.
"""
@@ -63,10 +63,10 @@
def setRenderedValue(self, value):
self._data = value
-
+
class InputWidget(Widget):
"""Mixin class providing some default input widget methods."""
-
+
def hasValidInput(self):
try:
self.validate()
More information about the Zope3-Checkins
mailing list