diff webob_view/template/+package+/factory.py_tmpl @ 1:eb2cb7ebc849

moving to a handler architecture
author k0s <k0scist@gmail.com>
date Thu, 29 Oct 2009 15:08:54 -0400
parents 72cb6dc31e3f
children
line wrap: on
line diff
--- a/webob_view/template/+package+/factory.py_tmpl	Tue Oct 27 15:04:33 2009 -0400
+++ b/webob_view/template/+package+/factory.py_tmpl	Thu Oct 29 15:08:54 2009 -0400
@@ -1,4 +1,4 @@
-from ${package} import View
+from dispatcher import Dispatcher
 from paste.httpexceptions import HTTPExceptionHandler
 
 def factory(global_conf, **app_conf):
@@ -7,6 +7,6 @@
     args = dict([(key.split(keystr, 1)[-1], value)
                  for key, value in app_conf.items()
                  if key.startswith(keystr) ])
-    app = View(**args)
+    app = Dispatcher(**args)
     return HTTPExceptionHandler(app)