Mercurial > libervia-pubsub
comparison idavoll/pubsub.py @ 154:bd8e58c73370
Update README and fix typo.
- Adds informations about how to use Idavoll with jabberd 2.x
- Updates dependency information
- Updates implemented specification version
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Thu, 29 Jun 2006 08:38:24 +0000 |
parents | 753b8432460f |
children | 5191ba7c4df8 |
comparison
equal
deleted
inserted
replaced
153:753b8432460f | 154:bd8e58c73370 |
---|---|
300 def return_subscription(self, result, subscriber): | 300 def return_subscription(self, result, subscriber): |
301 node, state = result | 301 node, state = result |
302 | 302 |
303 reply = domish.Element((NS_PUBSUB, "pubsub")) | 303 reply = domish.Element((NS_PUBSUB, "pubsub")) |
304 subscription = reply.addElement("subscription") | 304 subscription = reply.addElement("subscription") |
305 subscription["node"] = nod | 305 subscription["node"] = node |
306 subscription["jid"] = subscriber.full() | 306 subscription["jid"] = subscriber.full() |
307 subscription["subscription"] = state | 307 subscription["subscription"] = state |
308 return [reply] | 308 return [reply] |
309 | 309 |
310 def onUnsubscribe(self, iq): | 310 def onUnsubscribe(self, iq): |