[Checkins] SVN: z3c.form/trunk/src/z3c/form/field.txt Added test case for duplicated field keys/values based on calling update more then once ISSUE,

Roger Ineichen roger at projekt01.ch
Sat Feb 21 09:18:22 EST 2009


Log message for revision 96935:
  Added test case for duplicated field keys/values based on calling update more then once ISSUE,
  I'll fix that now

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

-=-
Modified: z3c.form/trunk/src/z3c/form/field.txt
===================================================================
--- z3c.form/trunk/src/z3c/form/field.txt	2009-02-21 14:16:33 UTC (rev 96934)
+++ z3c.form/trunk/src/z3c/form/field.txt	2009-02-21 14:18:22 UTC (rev 96935)
@@ -417,6 +417,29 @@
   >>> manager.keys()
   ['id', 'lastName', 'firstName']
 
+
+
+ISSUE: duplicated key, values if update ge called more then once. 
+NOTE: I'll fix this today.
+
+  >>> keys = list(manager.keys())
+  >>> values = list(manager.values())
+  >>> data = dict(manager._data)
+
+  >>> manager.update()
+  >>> manager.keys()
+  ['id', 'lastName', 'firstName', 'id', 'lastName', 'firstName']
+
+set values back to manager since the test will get otherwise messup
+
+  >>> manager._data_keys = keys
+  >>> manager._data_values = values
+  >>> manager._data = data
+
+END ISSUE
+
+
+
 Let's make sure that all enumerable mapping functions work correctly:
 
   >>> manager['lastName']



More information about the Checkins mailing list