comparison 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
comparison
equal deleted inserted replaced
1054:f2170536ba23 1055:c2037b44f84e
42 self.csrf_token = unicode(shortuuid.uuid()) 42 self.csrf_token = unicode(shortuuid.uuid())
43 self.pages_data = {} # used to keep data accross reloads (key is page instance) 43 self.pages_data = {} # used to keep data accross reloads (key is page instance)
44 44
45 @property 45 @property
46 def cache_dir(self): 46 def cache_dir(self):
47 if self.profile is None:
48 return self.service_cache_url + u'/'
47 return os.path.join(u'/', C.CACHE_DIR, self.uuid) + u'/' 49 return os.path.join(u'/', C.CACHE_DIR, self.uuid) + u'/'
48 50
49 def getPageData(self, page, key): 51 def getPageData(self, page, key):
50 """get session data for a page 52 """get session data for a page
51 53