changeset 2837:e2005dd39c92

plugin manhole: added "jid" module to globals
author Goffi <goffi@goffi.org>
date Sun, 03 Mar 2019 17:17:07 +0100
parents ad00f61fd9f5
children 8018cf9aa55b
files sat/plugins/plugin_dbg_manhole.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_dbg_manhole.py	Sun Mar 03 12:04:55 2019 +0100
+++ b/sat/plugins/plugin_dbg_manhole.py	Sun Mar 03 17:17:07 2019 +0100
@@ -23,6 +23,7 @@
 from twisted.conch.insults import insults
 from twisted.conch.telnet import TelnetTransport, TelnetBootstrapProtocol
 from twisted.internet import reactor, protocol
+from twisted.words.protocols.jabber import jid
 from twisted.conch.manhole import ColoredManhole
 
 log = getLogger(__name__)
@@ -56,6 +57,7 @@
         f = protocol.ServerFactory()
         namespace = {
             u"host": self.host,
+            u"jid": jid,
         }
         f.protocol = lambda: TelnetTransport(TelnetBootstrapProtocol,
                                              insults.ServerProtocol,