>>> from webob import exc >>> raise exc.HTTPForbidden() Traceback (most recent call last): File "<stdin>", line 1, in <module> webob.exc.HTTPForbidden: Access was denied to this resource. >>> raise exc.HTTPForbidden(explanation='Oops..') Traceback (most recent call last): File "<stdin>", line 1, in <module> webob.exc.HTTPForbidden: Oops.. >>> raise exc.HTTPForbidden(detail='Oops..') Traceback (most recent call last): File "<stdin>", line 1, in <module> webob.exc.HTTPForbidden: Oops..
so it works for both explanation and detail. What am I missing?
>>> from webob import exc HTTPForbidden: Access was denied to this resource. en(explanation= 'Oops.. ') HTTPForbidden: Oops.. en(detail= 'Oops.. ') HTTPForbidden: Oops..
>>> raise exc.HTTPForbidden()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
webob.exc.
>>> raise exc.HTTPForbidd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
webob.exc.
>>> raise exc.HTTPForbidd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
webob.exc.
so it works for both explanation and detail. What am I missing?