from pyramid import security
from pyramid.httpexceptions import HTTPFound, HTTPForbidden
import ptah
from ptah import form, view
@view.pview(context=HTTPForbidden)
def login_required(request):
return str('Hello World')
I did the same approach for ptah.cms.Forbidden without any success.
How am I supposed to override it?
Alan Runyan
Enfold Systems
Sent from my iPhone
this code works for me. have you seen default pyramid forbidden view?
define view only for HTTPForbidden. you dont need to define view for
ptah.cms.Forbidden
because it inherits from HTTPForbidden.