raise Exception("You must define the '%s' setting in your "
"application to use %s" % (name, feature))
+ def reverse_url(self, name, *args):
+ return self.application.reverse_url(name, *args)
+
def _execute(self, transforms, *args, **kwargs):
"""Executes this request with the given output transforms."""
self._transforms = transforms
return self.named_handlers[name].reverse(*args)
raise KeyError("%s not found in named urls" % name)
+
class HTTPError(Exception):
"""An exception that will turn into an HTTP error response."""
def __init__(self, status_code, log_message=None, *args):