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
This commit is contained in:
parent
4df7673f64
commit
da077485d2
1 changed files with 42 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ class Tickets(object):
|
|||
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"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue