# HG changeset patch # User Goffi # Date 1613825515 -3600 # Node ID a53e22400dadd0e88b809ccb73970ba1745416a7 # Parent df79874947d7495bc84c703056699fe755eeb4ae pages: helper method to get current profile's jid diff -r df79874947d7 -r a53e22400dad libervia/server/pages.py --- a/libervia/server/pages.py Sat Feb 20 13:51:11 2021 +0100 +++ b/libervia/server/pages.py Sat Feb 20 13:51:55 2021 +0100 @@ -1595,6 +1595,15 @@ sat_session = self.host.getSessionData(request, session_iface.ISATSession) return sat_session.profile + def getJid(self, request): + """helper method to easily get current jid + + @return: current jid + """ + sat_session = self.host.getSessionData(request, session_iface.ISATSession) + return sat_session.jid + + def getRData(self, request): """helper method to get request data dict