[Checkins] SVN: zope3org/trunk/src/zorg/multiform/gridform.txt

Stefan Martin s.martin at iwm-kmrc.de
Mon Apr 10 16:29:54 EDT 2006


Log message for revision 66813:
  

Changed:
  U   zope3org/trunk/src/zorg/multiform/gridform.txt

-=-
Modified: zope3org/trunk/src/zorg/multiform/gridform.txt
===================================================================
--- zope3org/trunk/src/zorg/multiform/gridform.txt	2006-04-10 20:21:01 UTC (rev 66812)
+++ zope3org/trunk/src/zorg/multiform/gridform.txt	2006-04-10 20:29:53 UTC (rev 66813)
@@ -39,6 +39,8 @@
     ...     return ISelection(form.context).selected
 
     >>> def isSelectedDisplay(form,action):
+    ...     if not isSubFormInputMode(form,action):
+    ...         return False
     ...     return ISelection(form.context).selected
     
 	>>> def isSubFormInputMode(form,action):
@@ -134,7 +136,15 @@
     >>> request.form['form.n1.selected']=u'on'
     >>> gf = OrdersForm(orderMapping,request)
     >>> res = gf()
-    >>> gf.subForms['n1'].prefix
-    aaa
-    >>> ISelection(gf.subForms['n1'].context).request.form
-    aaa    
\ No newline at end of file
+    >>> ISelection(gf.subForms['n1'].context).selected
+    True
+    >>> print res
+    <div>
+    <div><input... name="form.n0.selected" type="checkbox" value="on"  /></div>
+    <div>0</div>
+    <div>n0</div>
+    </div>
+    <div>
+    <div><input... checked="checked" ... name="form.n1.selected" ... /></div>
+    <div><input... name="form.n1.name" ...</div>
+    </div>    
\ No newline at end of file



More information about the Checkins mailing list