[Checkins] SVN: grok/trunk/src/grok/components.py Document intent
of GrokForm mix-in
Philipp von Weitershausen
philikon at philikon.de
Fri Mar 16 14:30:26 EDT 2007
Log message for revision 73229:
Document intent of GrokForm mix-in
Changed:
U grok/trunk/src/grok/components.py
-=-
Modified: grok/trunk/src/grok/components.py
===================================================================
--- grok/trunk/src/grok/components.py 2007-03-16 18:24:01 UTC (rev 73228)
+++ grok/trunk/src/grok/components.py 2007-03-16 18:30:26 UTC (rev 73229)
@@ -357,8 +357,14 @@
class GrokForm(object):
"""Mix-in to console zope.formlib's forms with grok.View and to
- add some more useful methods."""
+ add some more useful methods.
+ The consolation needs to happen because zope.formlib's Forms have
+ update/render methods which have different meanings than
+ grok.View's update/render methods. We deal with this issue by
+ 'renaming' zope.formlib's update() to update_form() and by
+ disallowing subclasses to have custom render() methods."""
+
def update(self):
"""Subclasses can override this method just like on regular
grok.Views. It will be called before any form processing
More information about the Checkins
mailing list