[Checkins] SVN: grok/trunk/doc/design/views.py inline-schemas for
forms also need to use a nested class
Wolfgang Schnerring
wosc at wosc.de
Mon Oct 16 08:04:00 EDT 2006
Log message for revision 70684:
inline-schemas for forms also need to use a nested class
Changed:
U grok/trunk/doc/design/views.py
-=-
Modified: grok/trunk/doc/design/views.py
===================================================================
--- grok/trunk/doc/design/views.py 2006-10-16 12:02:38 UTC (rev 70683)
+++ grok/trunk/doc/design/views.py 2006-10-16 12:03:59 UTC (rev 70684)
@@ -14,7 +14,7 @@
def calculateSum(self):
"""you can pull this in the template through view/calculateSum"""
-
+
@grok.before
def precalculatedSum(self):
"""executed before the template is rendered"""
@@ -54,9 +54,10 @@
called Index)
"""
- operand = schema.Int(title=u'Operand')
- operator = schema.Choice(...)
- operand2 = schema.Int(...)
+ class fields:
+ operand = schema.Int(title=u'Operand')
+ operator = schema.Choice(...)
+ operand2 = schema.Int(...)
@grok.action('Calculate')
def calculate(self, operand, operator, operand2):
More information about the Checkins
mailing list