diff sat/plugins/plugin_dbg_manhole.py @ 2837:e2005dd39c92

plugin manhole: added "jid" module to globals
author Goffi <goffi@goffi.org>
date Sun, 03 Mar 2019 17:17:07 +0100
parents 12d1ca646af1
children ab2696e34d29
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,