[wsgi/handler] fix api change from 3.18
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 15 Jan 2014 12:34:41 +0100
changeset 9443 6ff9401c37c1
parent 9442 fbf2287fb2ce
child 9444 6012cf57f48e
[wsgi/handler] fix api change from 3.18
wsgi/handler.py
--- 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')