diff src/server/session_iface.py @ 1055:c2037b44f84e

server: fixed cache_dir for service profile in session interface
author Goffi <goffi@goffi.org>
date Tue, 30 Jan 2018 08:01:21 +0100
parents f2170536ba23
children 9c41b7e91172
line wrap: on
line diff
--- a/src/server/session_iface.py	Fri Jan 26 11:15:26 2018 +0100
+++ b/src/server/session_iface.py	Tue Jan 30 08:01:21 2018 +0100
@@ -44,6 +44,8 @@
 
     @property
     def cache_dir(self):
+        if self.profile is None:
+            return self.service_cache_url + u'/'
         return os.path.join(u'/', C.CACHE_DIR, self.uuid) + u'/'
 
     def getPageData(self, page, key):