web/views/editcontroller.py
branchstable
changeset 3631 6176ef2f6488
parent 3309 2538daa6651c
child 3674 387d51af966d
child 3689 deb13e88e037
equal deleted inserted replaced
3628:440931181322 3631:6176ef2f6488
   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)