Mercurial > libervia-web
comparison libervia/server/pages.py @ 1381:a53e22400dad
pages: helper method to get current profile's jid
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 20 Feb 2021 13:51:55 +0100 |
parents | df79874947d7 |
children | 21d30f5d582a |
comparison
equal
deleted
inserted
replaced
1380:df79874947d7 | 1381:a53e22400dad |
---|---|
1593 None if no profile session is started | 1593 None if no profile session is started |
1594 """ | 1594 """ |
1595 sat_session = self.host.getSessionData(request, session_iface.ISATSession) | 1595 sat_session = self.host.getSessionData(request, session_iface.ISATSession) |
1596 return sat_session.profile | 1596 return sat_session.profile |
1597 | 1597 |
1598 def getJid(self, request): | |
1599 """helper method to easily get current jid | |
1600 | |
1601 @return: current jid | |
1602 """ | |
1603 sat_session = self.host.getSessionData(request, session_iface.ISATSession) | |
1604 return sat_session.jid | |
1605 | |
1606 | |
1598 def getRData(self, request): | 1607 def getRData(self, request): |
1599 """helper method to get request data dict | 1608 """helper method to get request data dict |
1600 | 1609 |
1601 this dictionnary if for the request only, it is not saved in session | 1610 this dictionnary if for the request only, it is not saved in session |
1602 It is mainly used to pass data between pages/methods called during request | 1611 It is mainly used to pass data between pages/methods called during request |