web/views/editcontroller.py
changeset 4226 67dd296f864d
parent 4224 5998df006968
child 4231 d55cac808b08
--- a/web/views/editcontroller.py	Wed Jan 13 15:56:31 2010 +0100
+++ b/web/views/editcontroller.py	Wed Jan 13 15:57:57 2010 +0100
@@ -72,7 +72,7 @@
             req.set_shared_data('__maineid', form['__maineid'], querydata=True)
         # no specific action, generic edition
         self._to_create = req.data['eidmap'] = {}
-        self._pending_fields = req.data['pendingfields'] = []
+        self._pending_fields = req.data['pendingfields'] = set()
         todelete = self._cw.get_pending_deletes()
         toinsert = self._cw.get_pending_inserts()
         try:
@@ -207,7 +207,7 @@
                     elif form.edited_entity.has_eid():
                         self.handle_relation(form, field, value, origvalues)
                     else:
-                        self._pending_fields.append( (form, field) )
+                        self._pending_fields.add( (form, field) )
 
         except ProcessFormError, exc:
             self.errors.append((field, exc))