[web configuration] http/https ui properties should not share the same cache directory
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 08 Jul 2010 10:04:30 +0200
changeset 5934 6ccaaf04cfbc
parent 5933 3d707b8f8a4d
child 5935 348cf2a14cc1
[web configuration] http/https ui properties should not share the same cache directory
web/webconfig.py
--- a/web/webconfig.py	Thu Jul 08 10:03:03 2010 +0200
+++ b/web/webconfig.py	Thu Jul 08 10:04:30 2010 +0200
@@ -342,8 +342,10 @@
             datadir_url=self.datadir_url[:-1])
         self._init_uiprops(self.uiprops)
         if self['https-url']:
+            cachedir = join(self.appdatahome, 'uicachehttps')
+            self.check_writeable_uid_directory(cachedir)
             self.https_uiprops = PropertySheet(
-                join(self.appdatahome, 'uicache'),
+                cachedir,
                 data=lambda x: self.https_datadir_url + x,
                 datadir_url=self.https_datadir_url[:-1])
             self._init_uiprops(self.https_uiprops)