Mercurial > libervia-backend
diff src/plugins/plugin_misc_tickets.py @ 2443:81a45e7886c9
core: added a mechanism to associate short names to namespaces:
- new internal registerNamespace can be used by a plugin to associate a short name to a namespace
- new NamespacesGet bridge method retrieve those associations
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 19 Nov 2017 16:46:07 +0100 |
parents | 7fa9456032e7 |
children | 9e692f09f367 |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_tickets.py Sun Nov 19 16:41:59 2017 +0100 +++ b/src/plugins/plugin_misc_tickets.py Sun Nov 19 16:46:07 2017 +0100 @@ -47,6 +47,7 @@ def __init__(self, host): log.info(_(u"Tickets plugin initialization")) self.host = host + host.registerNamespace('tickets', NS_TICKETS) self._p = self.host.plugins["XEP-0060"] self._s = self.host.plugins["PUBSUB_SCHEMA"] self._m = self.host.plugins["XEP-0277"]