[Checkins] SVN: zope3org/trunk/src/zorg/multiform/gridform.txt changed conditions in test

Bernd Dorn bernd.dorn at fhv.at
Tue Apr 11 02:21:16 EDT 2006


Log message for revision 66826:
  changed conditions in test

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 23:37:43 UTC (rev 66825)
+++ zope3org/trunk/src/zorg/multiform/gridform.txt	2006-04-11 06:21:15 UTC (rev 66826)
@@ -37,23 +37,21 @@
     ...     return ISelection(form.context).selected
     
     >>> def isSelectedInput(form,action):
-    ...     if not isSubFormInputMode(form,action):
+    ...     if not form.inputMode:
     ...         return False
     ...     return ISelection(form.context).selected
 
     >>> def isSelectedDisplay(form,action):
-    ...     if not isSubFormInputMode(form,action):
+    ...     if not form.inputMode:
     ...         return False
     ...     return ISelection(form.context).selected
     
-	>>> def isSubFormInputMode(form,action):
-	...     parentForm = form.parentForm
-	...     return parentForm.subFormInputMode.get(form.context.__name__,
-	...     parentForm.inputMode)
+    >>> def isSubFormInputMode(form,action):
+    ...     return form.inputMode
+    
+    >>> def isSubFormDisplayMode(form,action):
+    ...     return not form.inputMode
 
-	>>> def isSubFormDisplayMode(form,action):
-	...		return not isSubFormInputMode(form,action)
-
     >>> class OrderForm(gridform.GridItemFormBase):
     ...     inputMode=False
     ...     forceInput=['selected'] 
@@ -179,4 +177,4 @@
     >>> request.form['form.n1.selected.used']=u''
     >>> request.form['form.n1.actions.singleedit']=u''
     >>> gf = OrdersForm(orderMapping,request)
-    >>> res = gf()  
\ No newline at end of file
+    >>> res = gf()  



More information about the Checkins mailing list