Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0060.py @ 310:53adec87d1d7
plugin group blog: group blog subscription
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 11 Apr 2011 12:47:35 +0200 |
parents | 2b52a5da0978 |
children | f964dcec1611 |
comparison
equal
deleted
inserted
replaced
309:f1a3db8ee04a | 310:53adec87d1d7 |
---|---|
111 return client.createNode(service, nodeIdentifier, options) | 111 return client.createNode(service, nodeIdentifier, options) |
112 | 112 |
113 def deleteNode(self, service, nodeIdentifier, profile_key='@DEFAULT@'): | 113 def deleteNode(self, service, nodeIdentifier, profile_key='@DEFAULT@'): |
114 profile,client = self.__getClientNProfile(profile_key, 'delete node') | 114 profile,client = self.__getClientNProfile(profile_key, 'delete node') |
115 return client.deleteNode(service, nodeIdentifier) | 115 return client.deleteNode(service, nodeIdentifier) |
116 | |
117 def subscribe(self, service, nodeIdentifier, sub_jid = None, options=None, profile_key='@DEFAULT@'): | |
118 profile,client = self.__getClientNProfile(profile_key, 'subscribe node') | |
119 return client.subscribe(service, nodeIdentifier, sub_jid or client.parent.jid.userhostJID(), options=options) | |
116 | 120 |
117 | 121 |
118 class SatPubSubClient(pubsub.PubSubClient): | 122 class SatPubSubClient(pubsub.PubSubClient): |
119 implements(disco.IDisco) | 123 implements(disco.IDisco) |
120 | 124 |