From 58d716a6f7ed1eeff7f2a15cf76c6552ec2f6ed0 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Wed, 26 Jun 2013 10:18:14 +0200 Subject: [PATCH] - _load_plugins: add all functions from the plugin to the Osc class Adding only functions which starts with "do_" breaks the old behavior. --- osc/commandline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index cdca9679..c2581abb 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -7928,7 +7928,9 @@ Please submit there instead, or use --nodevelproject to force direct submission. mod.__dict__.update(globals()) for name in dir(mod): func = getattr(mod, name) - if name.startswith('do_') and inspect.isfunction(func): + # add all functions to the class (filtering only + # methods which start with "do_" breaks the old behavior) + if inspect.isfunction(func): setattr(self.__class__, name, func) except SyntaxError as e: if (os.environ.get('OSC_PLUGIN_FAIL_IGNORE')):