web/views/editcontroller.py
branch3.5
changeset 3309 2538daa6651c
parent 3194 650637d4d764
child 3369 7b88d12b4ee2
child 3631 6176ef2f6488
equal deleted inserted replaced
3308:88f5f89d8d1b 3309:2538daa6651c
    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)