equal
deleted
inserted
replaced
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) |