# HG changeset patch # User Aurelien Campeas # Date 1389785681 -3600 # Node ID 6ff9401c37c13ab9f838fe5d4725a73fd4683b58 # Parent fbf2287fb2ce52a00b87edc4a9913d555b9f5ca8 [wsgi/handler] fix api change from 3.18 diff -r fbf2287fb2ce -r 6ff9401c37c1 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')