changeset 1066:d1324e43d448

server: fixed profile cache path (the path has changed and "profiles" is now needed)
author Goffi <goffi@goffi.org>
date Wed, 14 Mar 2018 09:20:38 +0100
parents 5f97118dc82a
children 808ec98de8b3
files src/server/server.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/server.py	Wed Mar 14 09:01:04 2018 +0100
+++ b/src/server/server.py	Wed Mar 14 09:20:38 2018 +0100
@@ -1589,7 +1589,7 @@
 
         sat_session.profile = profile
         self.prof_connected.add(profile)
-        cache_dir = os.path.join(self.cache_root_dir, regex.pathEscape(profile))
+        cache_dir = os.path.join(self.cache_root_dir, u'profiles', regex.pathEscape(profile))
         # FIXME: would be better to have a global /cache URL which redirect to profile's cache directory, without uuid
         self.cache_resource.putChild(sat_session.uuid, ProtectedFile(cache_dir))
         log.debug(_(u"profile cache resource added from {uuid} to {path}").format(uuid=sat_session.uuid, path=cache_dir))