tmp (wokkel/pubsub): fixed affiliations (normal entity) handling

This commit is contained in:
Goffi 2017-03-23 20:59:25 +01:00
commit bc08258fe7

View file

@ -334,7 +334,7 @@ class PubSubRequest(generic.Stanza):
'optionsGet': ['nodeOrEmpty', 'jid', 'subidOrNone'], 'optionsGet': ['nodeOrEmpty', 'jid', 'subidOrNone'],
'optionsSet': ['nodeOrEmpty', 'jid', 'options', 'subidOrNone'], 'optionsSet': ['nodeOrEmpty', 'jid', 'options', 'subidOrNone'],
'subscriptions': [], 'subscriptions': [],
'affiliations': [], 'affiliations': ['nodeOrNone'],
'create': ['nodeOrNone', 'configureOrNone'], 'create': ['nodeOrNone', 'configureOrNone'],
'default': ['default'], 'default': ['default'],
'configureGet': ['nodeOrEmpty'], 'configureGet': ['nodeOrEmpty'],
@ -1637,7 +1637,7 @@ class PubSubResource(object):
def affiliationsGet(self, request): def affiliationsGet(self, request):
return defer.fail(Unsupported('modify-affiliations')) return defer.fail(Unsupported('retrieve-affiliations'))
def affiliationsSet(self, request): def affiliationsSet(self, request):