web/views/editcontroller.py
changeset 3369 7b88d12b4ee2
parent 3199 fc63b80ec979
parent 3309 2538daa6651c
child 3377 dd9d292b6a6d
child 3388 b8be8fc77c27
equal deleted inserted replaced
3300:c7c4775a5619 3369:7b88d12b4ee2
    49         todelete = self.req.get_pending_deletes()
    49         todelete = self.req.get_pending_deletes()
    50         toinsert = self.req.get_pending_inserts()
    50         toinsert = self.req.get_pending_inserts()
    51         try:
    51         try:
    52             methodname = form.pop('__method', None)
    52             methodname = form.pop('__method', None)
    53             for eid in req.edited_eids():
    53             for eid in req.edited_eids():
    54                 formparams = req.extract_entity_params(eid)
    54                 # __type and eid
       
    55                 formparams = req.extract_entity_params(eid, minparams=2)
    55                 if methodname is not None:
    56                 if methodname is not None:
    56                     entity = req.entity_from_eid(eid)
    57                     entity = req.entity_from_eid(eid)
    57                     method = getattr(entity, methodname)
    58                     method = getattr(entity, methodname)
    58                     method(formparams)
    59                     method(formparams)
    59                 eid = self.edit_entity(formparams)
    60                 eid = self.edit_entity(formparams)