[Checkins] SVN: z3c.form/trunk/src/z3c/form/button.txt - added test case for issue: duplicated button keys and values by calling update twice

Roger Ineichen roger at projekt01.ch
Sat Feb 21 01:40:26 EST 2009


Log message for revision 96858:
  - added test case for issue: duplicated button keys and values by calling update twice
  
  Work in progress,
  I'll apply a patch for tis soon

Changed:
  U   z3c.form/trunk/src/z3c/form/button.txt

-=-
Modified: z3c.form/trunk/src/z3c/form/button.txt
===================================================================
--- z3c.form/trunk/src/z3c/form/button.txt	2009-02-21 02:43:49 UTC (rev 96857)
+++ z3c.form/trunk/src/z3c/form/button.txt	2009-02-21 06:40:25 UTC (rev 96858)
@@ -84,6 +84,15 @@
 implementation.
 
   >>> actions.update()
+
+ISSUE duplicated button keys and values by calling update twice:
+
+Make sure we do not append a button twice to the key and value lists by calling
+update twice, Right now we do excatly that:
+
+  >>> actions.keys()
+  ['apply', 'cancel', 'apply', 'cancel']
+
   >>> actions['apply']
   <CustomButtonAction 'form.buttons.apply' u'Apply'>
 



More information about the Checkins mailing list