# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1241537181 -7200 # Node ID 56009f2101fe007315ce3d30fbbf3151b2107f35 # Parent e35c7179ff8f1b6c083e020185e76770fc263710 fix multiple edit diff -r e35c7179ff8f -r 56009f2101fe web/views/editforms.py --- a/web/views/editforms.py Tue May 05 17:16:01 2009 +0200 +++ b/web/views/editforms.py Tue May 05 17:26:21 2009 +0200 @@ -251,12 +251,14 @@ class TableEditForm(CompositeForm): id = 'muledit' - onsubmit = "return validateForm('entityForm', null);" + domid = 'entityForm' + onsubmit = "return validateForm('%s', null);" % domid form_buttons = [SubmitButton(_('validate modifications on selected items')), ResetButton(_('revert changes'))] - def __init__(self, *args, **kwargs): - super(TableEditForm, self).__init__(*args, **kwargs) + def __init__(self, req, rset, **kwargs): + kwargs.setdefault('__redirectrql', rset.printable_rql()) + super(TableEditForm, self).__init__(req, rset, **kwargs) for row in xrange(len(self.rset)): form = self.vreg.select_object('forms', 'edition', self.req, self.rset, row=row, attrcategories=('primary',),