diff src/server/session_iface.py @ 947:92f0eeb6dc72

pages: cache identities identities in session + get identities for comments in blog
author Goffi <goffi@goffi.org>
date Tue, 23 May 2017 00:06:00 +0200
parents 7b267496da1d
children dabecab10faa
line wrap: on
line diff
--- a/src/server/session_iface.py	Sun May 21 16:00:55 2017 +0200
+++ b/src/server/session_iface.py	Tue May 23 00:06:00 2017 +0200
@@ -17,12 +17,14 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 from zope.interface import Interface, Attribute, implements
+from sat.tools.common import data_objects
 import shortuuid
 
 class ISATSession(Interface):
     profile = Attribute("Sat profile")
     jid = Attribute("JID associated with the profile")
     uuid = Attribute("uuid associated with the profile session")
+    identities = Attribute("Identities of XMPP entities")
 
 
 class SATSession(object):
@@ -32,6 +34,7 @@
         self.profile = None
         self.jid = None
         self.uuid = unicode(shortuuid.uuid())
+        self.identities = data_objects.Identities()
 
 
 class ISATGuestSession(Interface):