diff sat_pubsub/tap.py @ 287:61f92273fb69

implementation of XEP-0355 (Namespace Delegation) to use SàT Pubsub as PEP service, first draft
author Goffi <goffi@goffi.org>
date Thu, 16 Apr 2015 21:06:19 +0200
parents a87c155d0fd5
children a776544d84e5
line wrap: on
line diff
--- a/sat_pubsub/tap.py	Mon Apr 13 17:29:18 2015 +0200
+++ b/sat_pubsub/tap.py	Thu Apr 16 21:06:19 2015 +0200
@@ -65,6 +65,7 @@
 from sat_pubsub import __version__, const, mam
 from sat_pubsub.backend import BackendService
 from sat_pubsub.privilege import PrivilegesHandler
+from sat_pubsub.delegation import DelegationsHandler
 
 
 class Options(usage.Options):
@@ -142,6 +143,10 @@
     ph.setHandlerParent(cs)
     bs.privilege = ph
 
+    dh = DelegationsHandler()
+    dh.setHandlerParent(cs)
+    bs.delegation = dh
+
     resource = IPubSubResource(bs)
     resource.hideNodes = config["hide-nodes"]
     resource.serviceJID = config["jid"]