[BlueBream] Exception views, again
jryan at reliefgarden.org
Tue Aug 3 18:26:48 EDT 2010
So, recently when I asked about this, Michael Howitz responded
helpfully suggesting that I may need a layer declaration, as here:
I also see there is a quick note regarding this at:
Not sure if that's new or I just missed it before.
After finishing some other tasks in the project I was working on, I
came back around to this problem and tried this:
$ paster create -t bluebream unauth
Edited unauth/src/unauth/welcome/interfaces.py to add:
from zope.publisher.interfaces.browser import IDefaultBrowserLayer
"""Layer for Sample Application."""
Edited unauth/src/unauth/welcome/configure.zcml to add:
Added to each browser: block:
<browser:defaultSkin name="Unauth" />
And, the Unauthorized view:
Also tried for="zope.security.interfaces.IUnauthorized",
for="zope.publisher.interfaces.INotFound" (as in Baiju's docs linked
above) and for="zope.interface.common.interfaces.IException", to no
The actual 'simplest use case' project i'm working with right now is at:
Clearly, I'm missing something obvious, and I'll be happy to
contribute to making the docs clearer in this area.
Best, and thanks in advance..
More information about the bluebream