plugin group blog: group blog subscription

This commit is contained in:
Goffi 2011-04-11 12:47:35 +02:00
commit 3728cc251b

View file

@ -113,6 +113,10 @@ class XEP_0060():
def deleteNode(self, service, nodeIdentifier, profile_key='@DEFAULT@'):
profile,client = self.__getClientNProfile(profile_key, 'delete node')
return client.deleteNode(service, nodeIdentifier)
def subscribe(self, service, nodeIdentifier, sub_jid = None, options=None, profile_key='@DEFAULT@'):
profile,client = self.__getClientNProfile(profile_key, 'subscribe node')
return client.subscribe(service, nodeIdentifier, sub_jid or client.parent.jid.userhostJID(), options=options)
class SatPubSubClient(pubsub.PubSubClient):