--- a/wsgi/handler.py Tue Jan 21 17:01:33 2014 +0100
+++ b/wsgi/handler.py Wed Jan 15 12:34:41 2014 +0100
@@ -21,7 +21,7 @@
from itertools import chain, repeat, izip
-from cubicweb import cwreg, AuthenticationError
+from cubicweb import AuthenticationError
from cubicweb.web import DirectResponse
from cubicweb.web.application import CubicWebPublisher
from cubicweb.wsgi.request import CubicWebWsgiRequest
@@ -96,8 +96,8 @@
parameters.
"""
- def __init__(self, repo, config):
- self.appli = CubicWebPublisher(repo, config)
+ def __init__(self, config):
+ self.appli = CubicWebPublisher(config.repository(), config)
self.config = config
self.base_url = self.config['base-url']
self.url_rewriter = self.appli.vreg['components'].select_or_none('urlrewriter')