Mercurial > libervia-web
diff src/server/session_iface.py @ 1094:8a270f32de81
server (session): new "connected" property, which is True when a user is logged
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Jun 2018 13:04:51 +0200 |
parents | eda7a1c6532a |
children | 9f7a628ce893 |
line wrap: on
line diff
--- a/src/server/session_iface.py Fri Jun 01 13:03:52 2018 +0200 +++ b/src/server/session_iface.py Fri Jun 01 13:04:51 2018 +0200 @@ -55,6 +55,10 @@ return self.service_cache_url + u'/' return os.path.join(u'/', C.CACHE_DIR, self.uuid) + u'/' + @property + def connected(self): + return self.profile is not None + def getPageData(self, page, key): """get session data for a page