diff --git a/sat/memory/params.py b/sat/memory/params.py index e1d8d138..6fdfd516 100644 --- a/sat/memory/params.py +++ b/sat/memory/params.py @@ -218,7 +218,8 @@ class Params(object): @param profile_key: profile name or key which can be C.PROF_KEY_ALL for all profiles C.PROF_KEY_DEFAULT for default profile - @param return_profile_keys: if True, return unmanaged profile keys (like C.PROF_KEY_ALL). This keys must be managed by the caller + @param return_profile_keys: if True, return unmanaged profile keys (like + C.PROF_KEY_ALL). This keys must be managed by the caller @return: requested profile name @raise exceptions.ProfileUnknownError: profile doesn't exists @raise exceptions.ProfileNotSetError: if C.PROF_KEY_NONE is used diff --git a/sat/plugins/plugin_dbg_manhole.py b/sat/plugins/plugin_dbg_manhole.py index 9199bb7f..ee41ba4c 100644 --- a/sat/plugins/plugin_dbg_manhole.py +++ b/sat/plugins/plugin_dbg_manhole.py @@ -57,6 +57,7 @@ class Manhole(object): f = protocol.ServerFactory() namespace = { "host": self.host, + "C": C, "jid": jid, } f.protocol = lambda: TelnetTransport(TelnetBootstrapProtocol, diff --git a/sat/plugins/plugin_misc_debug.py b/sat/plugins/plugin_misc_debug.py index fae1e0c5..7cd532ad 100644 --- a/sat/plugins/plugin_misc_debug.py +++ b/sat/plugins/plugin_misc_debug.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # SàT plugin for managing raw XML log # Copyright (C) 2009-2016 Jérôme Poisson (goffi@goffi.org) @@ -17,12 +16,13 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +import json from sat.core.i18n import _ from sat.core.log import getLogger +from sat.core.constants import Const as C + log = getLogger(__name__) -from sat.core.constants import Const as C -import json PLUGIN_INFO = { C.PI_NAME: "Debug Plugin",