17 Jun
2009
17 Jun
'09
8:42 a.m.
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:agroszer@gmail.com -- Quote of the day: Words tend to be inadequate
6160
Age (days ago)
6160
Last active (days ago)
0 comments
1 participants
participants (1)
-
Adam GROSZER