# HG changeset patch # User Sylvain Thénault # Date 1267006287 -3600 # Node ID c375d50eaad36ae54a779ae935b6e688a473525c # Parent 4994901b7379d78c7852bb4f6ef471778abe8a4b [form] only set __form_id for the main form, not for sub-forms. Should fix regression introduced by 4668:9f82f81bf13d diff -r 4994901b7379 -r c375d50eaad3 web/form.py --- a/web/form.py Wed Feb 24 11:05:01 2010 +0100 +++ b/web/form.py Wed Feb 24 11:11:27 2010 +0100 @@ -80,7 +80,8 @@ submitmsg=None, mainform=True, **kwargs): super(Form, self).__init__(req, rset=rset, row=row, col=col) self.fields = list(self.__class__._fields_) - self.add_hidden(u'__form_id', kwargs.pop('formvid', self.__regid__)) + if mainform: + self.add_hidden(u'__form_id', kwargs.pop('formvid', self.__regid__)) for key, val in kwargs.iteritems(): if key in controller.NAV_FORM_PARAMETERS: self.add_hidden(key, val)