diff src/server/server.py @ 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 4b69f69c6ffd
children 9c41b7e91172
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))