equal
deleted
inserted
replaced
140 self.notify_edited(entity) |
140 self.notify_edited(entity) |
141 if formparams.has_key('__delete'): |
141 if formparams.has_key('__delete'): |
142 todelete = self.req.list_form_param('__delete', formparams, pop=True) |
142 todelete = self.req.list_form_param('__delete', formparams, pop=True) |
143 self.delete_relations(parse_relations_descr(todelete)) |
143 self.delete_relations(parse_relations_descr(todelete)) |
144 if formparams.has_key('__cloned_eid'): |
144 if formparams.has_key('__cloned_eid'): |
145 entity.copy_relations(formparams['__cloned_eid']) |
145 entity.copy_relations(typed_eid(formparams['__cloned_eid'])) |
146 if formparams.has_key('__insert'): |
146 if formparams.has_key('__insert'): |
147 toinsert = self.req.list_form_param('__insert', formparams, pop=True) |
147 toinsert = self.req.list_form_param('__insert', formparams, pop=True) |
148 self.insert_relations(parse_relations_descr(toinsert)) |
148 self.insert_relations(parse_relations_descr(toinsert)) |
149 if edited: # only execute linkto for the main entity |
149 if edited: # only execute linkto for the main entity |
150 self.execute_linkto(eid) |
150 self.execute_linkto(eid) |