Mercurial > hg > redirectall
diff redirectall/factory.py @ 1:3117c5556eca default tip
update redirectall
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 08 May 2011 19:14:21 -0700 |
parents | 9e2187433034 |
children |
line wrap: on
line diff
--- a/redirectall/factory.py Sun May 08 18:28:26 2011 -0700 +++ b/redirectall/factory.py Sun May 08 19:14:21 2011 -0700 @@ -1,5 +1,4 @@ -from dispatcher import Dispatcher -from paste.httpexceptions import HTTPExceptionHandler +from dispatcher import RedirectAll def factory(global_conf, **app_conf): """create a webob view and wrap it in middleware""" @@ -7,6 +6,5 @@ args = dict([(key.split(keystr, 1)[-1], value) for key, value in app_conf.items() if key.startswith(keystr) ]) - app = Dispatcher(**args) - return HTTPExceptionHandler(app) + return RedirectAll(**args)