[http] drop use-request-subdomain feature (closes #2251986)
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 15 Mar 2012 17:30:28 +0100
changeset 8308 805a257709f6
parent 8307 8be58694f416
child 8309 48ef505aa9f9
[http] drop use-request-subdomain feature (closes #2251986) This feature do not have any user nowaday and lays in the path to WSGI.
cwconfig.py
etwist/server.py
--- a/cwconfig.py	Fri Mar 16 10:29:15 2012 +0100
+++ b/cwconfig.py	Thu Mar 15 17:30:28 2012 +0100
@@ -386,14 +386,6 @@
           'help': 'allow users to login with their primary email if set',
           'group': 'main', 'level': 2,
           }),
-        ('use-request-subdomain',
-         {'type' : 'yn',
-          'default': None,
-          'help': ('if set, base-url subdomain is replaced by the request\'s '
-                   'host, to help managing sites with several subdomains in a '
-                   'single cubicweb instance'),
-          'group': 'main', 'level': 1,
-          }),
         ('mangle-emails',
          {'type' : 'yn',
           'default': False,
--- a/etwist/server.py	Fri Mar 16 10:29:15 2012 +0100
+++ b/etwist/server.py	Thu Mar 15 17:30:28 2012 +0100
@@ -165,9 +165,6 @@
         else:
             https = False
             baseurl = self.base_url
-        if self.config['use-request-subdomain']:
-            baseurl = host_prefixed_baseurl(baseurl, host)
-            self.warning('used baseurl is %s for this request', baseurl)
         req = CubicWebTwistedRequestAdapter(request, self.appli.vreg, https, baseurl)
         if req.authmode == 'http':
             # activate realm-based auth