diff -r aff75b69db92 -r 2c48c091b6a2 wsgi/handler.py --- a/wsgi/handler.py Tue Jul 02 17:09:04 2013 +0200 +++ b/wsgi/handler.py Mon Jan 13 13:47:47 2014 +0100 @@ -1,4 +1,4 @@ -# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of CubicWeb. @@ -17,8 +17,6 @@ # with CubicWeb. If not, see . """WSGI request handler for cubicweb""" - - __docformat__ = "restructuredtext en" from itertools import chain, repeat, izip @@ -92,29 +90,21 @@ return iter(self.body) - class CubicWebWSGIApplication(object): """This is the wsgi application which will be called by the wsgi server with the WSGI ``environ`` and ``start_response`` parameters. - - XXX: missing looping tasks and proper repository shutdown when - the application is stopped. - NOTE: no pyro """ def __init__(self, repo, config): self.appli = CubicWebPublisher(repo, config) self.config = config self.base_url = self.config['base-url'] - self.https_url = self.config['https-url'] self.url_rewriter = self.appli.vreg['components'].select_or_none('urlrewriter') def _render(self, req): """this function performs the actual rendering """ - if self.base_url is None: - self.base_url = self.config._base_url = req.base_url() try: path = req.path result = self.appli.handle_request(req, path)