Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

zope.testbrowser behavour on HTTPError

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


agroszer at gmail

Jun 17, 2009, 1:42 AM

Post #1 of 1 (274 views)
Permalink
zope.testbrowser behavour on HTTPError

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[at]gmail.com
--
Quote of the day:
Words tend to be inadequate

_______________________________________________
Zope-Dev maillist - Zope-Dev[at]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 )

Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.