diff -r 495862266785 -r 6b46d73823f5 web/views/editforms.py --- a/web/views/editforms.py Wed Sep 23 19:26:38 2009 +0200 +++ b/web/views/editforms.py Wed Sep 23 19:40:19 2009 +0200 @@ -59,11 +59,11 @@ def __init__(self, *args, **kwargs): super(DeleteConfForm, self).__init__(*args, **kwargs) done = set() - for entity in self.rset.entities(): + for entity in self.cw_rset.entities(): if entity.eid in done: continue done.add(entity.eid) - subform = self.vreg['forms'].select('base', self.req, entity=entity, + subform = self._cw.vreg['forms'].select('base', self._cw, entity=entity, mainform=False) self.form_add_subform(subform) @@ -78,16 +78,16 @@ def call(self, onsubmit=None): """ask for confirmation before real deletion""" - req, w = self.req, self.w + req, w = self._cw, self.w _ = req._ w(u'\n' % _('this action is not reversible!')) # XXX above message should have style of a warning w(u'

%s

\n' % _('Do you want to delete the following element(s) ?')) - form = self.vreg['forms'].select(self.id, req, rset=self.rset, + form = self._cw.vreg['forms'].select(self.__regid__, req, rset=self.cw_rset, onsubmit=onsubmit) w(u'