Re: [Zope3-Users] Re: pau, testbrowser, HTTP Error 403: Forbidden

2006-09-06 Thread Darryl Cousins
On Wed, 2006-09-06 at 06:45 -0400, Stephan Richter wrote: > On Sunday 27 August 2006 08:14, Darryl Cousins wrote: > > Doesn't pass. I can't figure how to use the test to test for what I > > expect - which is of course an exception. > > Two choices that I commonly use for debugging: > > 1. print b

Re: [Zope3-Users] Re: pau, testbrowser, HTTP Error 403: Forbidden

2006-09-06 Thread Stephan Richter
On Sunday 27 August 2006 08:14, Darryl Cousins wrote: > Doesn't pass. I can't figure how to use the test to test for what I > expect - which is of course an exception. Two choices that I commonly use for debugging: 1. print browser.contents; this will fail right away, but shows you the HTML that

Re: [Zope3-Users] Re: pau, testbrowser, HTTP Error 403: Forbidden

2006-08-27 Thread Darryl Cousins
Hi Philipp, My choice of words is poor. No, I am not redirected, the url remains the same as typed but I do get a view which displays text saying 'Unauthorised, you are not' etc from zope/app/exception/browser/unauthorized.pt but the testbrowser doesn't give me this view. This behaviour suprised m

Re: [Zope3-Users] Re: pau, testbrowser, HTTP Error 403: Forbidden

2006-08-27 Thread Darryl Cousins
Cheers Philip for the reply. Yup. The site I am testing is set up with an initialization handler on the site folder, with the pau, groups, principals and other bits. The principal is logged in with this pau in the site folder (I can verify this with a testbrowser call to the principal account view

[Zope3-Users] Re: pau, testbrowser, HTTP Error 403: Forbidden

2006-08-27 Thread Philipp von Weitershausen
Darryl Cousins wrote: > Hi all, > > In normal browser when logged in as a pau principal I am successfully > redirected to the standard unauthorized view when accessing a view > forbidden to the user. > > But accessing the same view in tests using testbrowser and loggd in as > the same principal I