Fri Dec  2 10:35:03 EET 2005  [EMAIL PROTECTED]
  * Allow multiple checkbox form fields with same name.
  
  Nevow formless adds hidden fields with False values
  to ensure it gets something back, even if the button
  was not checked.
New patches:

[Allow multiple checkbox form fields with same name.
[EMAIL PROTECTED]
 
 Nevow formless adds hidden fields with False values
 to ensure it gets something back, even if the button
 was not checked.
] {
hunk ./twill/browser.py 316
+    def _all_the_same_checkbox(self, matches):
+        name = None
+        for match in matches:
+            if match.type not in ['checkbox', 'hidden']:
+                return False
+            if name is None:
+                name = match.name
+            else:
+                if match.name != name:
+                    return False
+        return True
+
hunk ./twill/browser.py 340
-            if len(matches) == 1:
+            if (len(matches) == 1
+                or self._all_the_same_checkbox(matches)):
hunk ./twill/browser.py 366
-                if len(matches) == 1:
+                if (len(matches) == 1
+                    or self._all_the_same_checkbox(matches)):
}

Context:

[updated version to 0.8.1, prophylactically
[EMAIL PROTECTED] 
[added ctb-notes
[EMAIL PROTECTED] 
[TAG release-0.8
[EMAIL PROTECTED] 
Patch bundle hash:
9d5a3f93d9a7515328d91060d3be0dbb76366b86
_______________________________________________
twill mailing list
[email protected]
http://lists.idyll.org/listinfo/twill

Reply via email to