Hello,

I noticed that if a click or some action causes an HTTPError in a
Browser, the old page content stays in .contents.
Exception comes at self.browser._clickSubmit, thus _changed() never
gets executed.
403 and such errors definitely return content.

Opinions? Anyone against a fix?

class SubmitControl(Control):
    interface.implements(interfaces.ISubmitControl)

    def click(self):
        if self._browser_counter != self.browser._counter:
            raise interfaces.ExpiredError
        self.browser._clickSubmit(self.mech_form, self.mech_control, (1,1))
        self.browser._changed()

-- 
Best regards,
 Adam GROSZER                          mailto:agros...@gmail.com
--
Quote of the day:
Words tend to be inadequate

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to