66 if self._pending_relations: |
66 if self._pending_relations: |
67 for rschema, formparams, x, entity in self._pending_relations: |
67 for rschema, formparams, x, entity in self._pending_relations: |
68 self.handle_relation(rschema, formparams, x, entity, True) |
68 self.handle_relation(rschema, formparams, x, entity, True) |
69 |
69 |
70 # XXX this processes *all* pending operations of *all* entities |
70 # XXX this processes *all* pending operations of *all* entities |
71 if form.has_key('__delete'): |
71 if req.form.has_key('__delete'): |
72 todelete += req.list_form_param('__delete', form, pop=True) |
72 todelete += req.list_form_param('__delete', req.form, pop=True) |
73 if todelete: |
73 if todelete: |
74 self.delete_relations(parse_relations_descr(todelete)) |
74 self.delete_relations(parse_relations_descr(todelete)) |
75 if form.has_key('__insert'): |
75 if form.has_key('__insert'): |
76 toinsert = req.list_form_param('__insert', form, pop=True) |
76 toinsert = req.list_form_param('__insert', form, pop=True) |
77 if toinsert: |
77 if toinsert: |