I have ideological question -- why not to handle webob.exc.HTTPException in router? I think it is very useful, consider for example the following case:
I need to define some views that works with JSON encoded request body, so there is base class for them: class JSONView(object): def __init__(self, context, request): try: request.json = json.loads(request.body) except ValueError: raise webob.exc.HTTPBadRequest() self.request = request So webob.exc.HTTPBadRequest will be propagated up to Router. Thanks! _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev