Mercurial > libervia-backend
comparison tools/memory.py @ 13:bd9e9997d540
wokkel integration (not finished yet)
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 30 Oct 2009 17:38:27 +0100 |
parents | c4bc297b82f0 |
children | a62d7d453f22 |
comparison
equal
deleted
inserted
replaced
12:ef8060d365cb | 13:bd9e9997d540 |
---|---|
119 return ret | 119 return ret |
120 | 120 |
121 def addContact(self, JID, attributes, groups): | 121 def addContact(self, JID, attributes, groups): |
122 debug("Memory addContact: %s",JID) | 122 debug("Memory addContact: %s",JID) |
123 assert(isinstance(attributes,dict)) | 123 assert(isinstance(attributes,dict)) |
124 assert(isinstance(groups,list)) | 124 assert(isinstance(groups,set)) |
125 self.contact[JID]=[attributes, groups] | 125 self.contact[JID]=[attributes, groups] |
126 | 126 |
127 def addPresenceStatus(self, jid, type, show, status, priority): | 127 def addPresenceStatus(self, jid, type, show, status, priority): |
128 self.presenceStatus[jid]=[type, show, status, priority] | 128 self.presenceStatus[jid]=[type, show, status, priority] |
129 | 129 |