i don't use traversal... but can't you just use an httpexception?

http://readthedocs.org/docs/pyramid/en/1.0-branch/api/httpexceptions.html

     class HTTPForbidden(detail=None, headers=None, comment=None,
body_template=None, **kw)
     subclass of HTTPClientError
     This indicates that the server understood the request, but is
refusing to fulfill it.
     code: 403, title: Forbidden


from pyramid import httpexceptions
....
return httpexceptions.HTTPForbidden()

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to