Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0277.py @ 2475:efd7a24d611c
plugin XEP-0277: microblog namespace is now registered
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Jan 2018 17:40:06 +0100 |
parents | 91bbad17fd53 |
children | dc55b854ccf3 |
comparison
equal
deleted
inserted
replaced
2474:e04c874ace79 | 2475:efd7a24d611c |
---|---|
69 namespace = NS_MICROBLOG | 69 namespace = NS_MICROBLOG |
70 | 70 |
71 def __init__(self, host): | 71 def __init__(self, host): |
72 log.info(_(u"Microblogging plugin initialization")) | 72 log.info(_(u"Microblogging plugin initialization")) |
73 self.host = host | 73 self.host = host |
74 host.registerNamespace('microblog', NS_MICROBLOG) | |
74 self._p = self.host.plugins["XEP-0060"] # this facilitate the access to pubsub plugin | 75 self._p = self.host.plugins["XEP-0060"] # this facilitate the access to pubsub plugin |
75 self.rt_sessions = sat_defer.RTDeferredSessions() | 76 self.rt_sessions = sat_defer.RTDeferredSessions() |
76 self.host.plugins["XEP-0060"].addManagedNode(NS_MICROBLOG, items_cb=self._itemsReceived) | 77 self.host.plugins["XEP-0060"].addManagedNode(NS_MICROBLOG, items_cb=self._itemsReceived) |
77 | 78 |
78 host.bridge.addMethod("mbSend", ".plugin", | 79 host.bridge.addMethod("mbSend", ".plugin", |