[devtools/fake] add some https related properties to FakeRequest
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 27 Feb 2012 12:47:24 +0100
changeset 8276 57d8f3b3e165
parent 8275 49e105e000ab
child 8277 8b173e0a617f
[devtools/fake] add some https related properties to FakeRequest
devtools/fake.py
--- a/devtools/fake.py	Thu Feb 23 15:39:19 2012 +0100
+++ b/devtools/fake.py	Mon Feb 27 12:47:24 2012 +0100
@@ -33,6 +33,7 @@
 class FakeConfig(dict, BaseApptestConfiguration):
     translations = {}
     uiprops = {}
+    https_uiprops = {}
     apphome = None
     debugmode = False
     def __init__(self, appid='data', apphome=None, cubes=()):
@@ -44,6 +45,7 @@
         self['base-url'] = BASE_URL
         self['rql-cache-size'] = 3000
         self.datadir_url = BASE_URL + 'data/'
+        self.https_datadir_url = (BASE_URL + 'data/').replace('http://', 'https://')
 
     def cubes(self, expand=False):
         return self._cubes