diff src/tmp/wokkel/pubsub.py @ 2202:7f91b894bfdf

tmp (wokkel/pubsub): fixed affiliations (normal entity) handling
author Goffi <goffi@goffi.org>
date Thu, 23 Mar 2017 20:59:25 +0100
parents 95dc90f1065a
children 582359de7268
line wrap: on
line diff
--- a/src/tmp/wokkel/pubsub.py	Thu Mar 23 09:11:25 2017 +0100
+++ b/src/tmp/wokkel/pubsub.py	Thu Mar 23 20:59:25 2017 +0100
@@ -334,7 +334,7 @@
         'optionsGet': ['nodeOrEmpty', 'jid', 'subidOrNone'],
         'optionsSet': ['nodeOrEmpty', 'jid', 'options', 'subidOrNone'],
         'subscriptions': [],
-        'affiliations': [],
+        'affiliations': ['nodeOrNone'],
         'create': ['nodeOrNone', 'configureOrNone'],
         'default': ['default'],
         'configureGet': ['nodeOrEmpty'],
@@ -1637,7 +1637,7 @@
 
 
     def affiliationsGet(self, request):
-        return defer.fail(Unsupported('modify-affiliations'))
+        return defer.fail(Unsupported('retrieve-affiliations'))
 
 
     def affiliationsSet(self, request):