Hi!
Wichert Akkerman wrote:
Unauthorised is doing stupid things here:
(Pdb) p v
Unauthorized()
(Pdb) p unicode(v)
u''
(Pdb) p str(v)
*** UnicodeEncodeError: UnicodeEncodeError('ascii',
u'!DOCTYPE html...', 1175, 1176, 'ordinal not in range(128)')
I added an extra change (see
Hi!
Wichert Akkerman wrote:
v is the html as generated by my view. Reraising the exception transfers
control to the bare except in
ZPublisher.Publish.publish_module_standard, which generates the standard
site error page and returns that.
Could it be that your v is unicode?
Please let me
On 4/20/10 09:51 , yuppie wrote:
Hi!
Wichert Akkerman wrote:
v is the html as generated by my view. Reraising the exception transfers
control to the bare except in
ZPublisher.Publish.publish_module_standard, which generates the standard
site error page and returns that.
Could it be that
On 4/20/10 09:51 , yuppie wrote:
Hi!
Wichert Akkerman wrote:
v is the html as generated by my view. Reraising the exception transfers
control to the bare except in
ZPublisher.Publish.publish_module_standard, which generates the standard
site error page and returns that.
Could it be that
Hi!
Wichert Akkerman wrote:
Unauthorised is doing stupid things here:
(Pdb) p v
Unauthorized()
(Pdb) p unicode(v)
u''
(Pdb) p str(v)
*** UnicodeEncodeError: UnicodeEncodeError('ascii',
u'!DOCTYPE html...', 1175, 1176, 'ordinal not in range(128)')
I added an extra change (see
On 4/20/10 15:17 , yuppie wrote:
Hi!
Wichert Akkerman wrote:
Unauthorised is doing stupid things here:
(Pdb) p v
Unauthorized()
(Pdb) p unicode(v)
u''
(Pdb) p str(v)
*** UnicodeEncodeError: UnicodeEncodeError('ascii',
u'!DOCTYPE html...', 1175, 1176, 'ordinal not in
Hi!
Wichert Akkerman wrote:
On 4/20/10 15:17 , yuppie wrote:
Wichert Akkerman wrote:
I added an extra change (see diff below) to fix that, after which things
seemed to work.
Great!
Can you commit that change along with your other changes?
Yes. I'll write some more tests and commit it in
I can't get an Unauthorized exception view to work with current Zope
2.12 svn. My approach was:
- add a dummy PAS challenge plugin which does nothing, effectively
delegating everything to my Unauthorized exception view
- register a browser view for Unauthorized and return a proper error
Hi!
Wichert Akkerman wrote:
I can't get an Unauthorized exception view to work with current Zope
2.12 svn. My approach was:
- add a dummy PAS challenge plugin which does nothing, effectively
delegating everything to my Unauthorized exception view
- register a browser view for
Hi again!
yuppie wrote:
Wichert Akkerman wrote:
v is the html as generated by my view. Reraising the exception transfers
control to the bare except in
ZPublisher.Publish.publish_module_standard, which generates the standard
site error page and returns that.
I would have expected that
10 matches
Mail list logo