comparison wokkel/pubsub.py @ 37:e8296d7bfeb1

tmp (wokkel/pubsub): fixed affiliations (normal entity) handling
author Goffi <goffi@goffi.org>
date Thu, 23 Mar 2017 20:59:25 +0100
parents a67d9617b4ef
children e3e02ead6bde
comparison
equal deleted inserted replaced
36:a67d9617b4ef 37:e8296d7bfeb1
332 'subscribe': ['nodeOrEmpty', 'jid', 'optionsWithSubscribe'], 332 'subscribe': ['nodeOrEmpty', 'jid', 'optionsWithSubscribe'],
333 'unsubscribe': ['nodeOrEmpty', 'jid', 'subidOrNone'], 333 'unsubscribe': ['nodeOrEmpty', 'jid', 'subidOrNone'],
334 'optionsGet': ['nodeOrEmpty', 'jid', 'subidOrNone'], 334 'optionsGet': ['nodeOrEmpty', 'jid', 'subidOrNone'],
335 'optionsSet': ['nodeOrEmpty', 'jid', 'options', 'subidOrNone'], 335 'optionsSet': ['nodeOrEmpty', 'jid', 'options', 'subidOrNone'],
336 'subscriptions': [], 336 'subscriptions': [],
337 'affiliations': [], 337 'affiliations': ['nodeOrNone'],
338 'create': ['nodeOrNone', 'configureOrNone'], 338 'create': ['nodeOrNone', 'configureOrNone'],
339 'default': ['default'], 339 'default': ['default'],
340 'configureGet': ['nodeOrEmpty'], 340 'configureGet': ['nodeOrEmpty'],
341 'configureSet': ['nodeOrEmpty', 'configureOrNone'], 341 'configureSet': ['nodeOrEmpty', 'configureOrNone'],
342 'items': ['node', 'maxItems', 'itemIdentifiers', 'subidOrNone'], 342 'items': ['node', 'maxItems', 'itemIdentifiers', 'subidOrNone'],
1635 def delete(self, request): 1635 def delete(self, request):
1636 return defer.fail(Unsupported('delete-nodes')) 1636 return defer.fail(Unsupported('delete-nodes'))
1637 1637
1638 1638
1639 def affiliationsGet(self, request): 1639 def affiliationsGet(self, request):
1640 return defer.fail(Unsupported('modify-affiliations')) 1640 return defer.fail(Unsupported('retrieve-affiliations'))
1641 1641
1642 1642
1643 def affiliationsSet(self, request): 1643 def affiliationsSet(self, request):
1644 return defer.fail(Unsupported('modify-affiliations')) 1644 return defer.fail(Unsupported('modify-affiliations'))
1645 1645