diff options
author | Necoro <> | 2008-02-12 21:52:18 +0000 |
---|---|---|
committer | Necoro <> | 2008-02-12 21:52:18 +0000 |
commit | 189efdfb8963fcd2e9a979583aabedd08cb04a44 (patch) | |
tree | 577bab4198dc01067dc8dba493676fb60d1944a1 /portato/plugin.py | |
parent | 6a5280392712c7970e2632b4eed4fb26281d3086 (diff) | |
download | portato-189efdfb8963fcd2e9a979583aabedd08cb04a44.tar.gz portato-189efdfb8963fcd2e9a979583aabedd08cb04a44.tar.bz2 portato-189efdfb8963fcd2e9a979583aabedd08cb04a44.zip |
r752@Devoty: necoro | 2008-02-12 22:19:21 +0100
Small import fixes (thanks to pylint)
Diffstat (limited to '')
-rw-r--r-- | portato/plugin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/portato/plugin.py b/portato/plugin.py index b081ecd..ab5564f 100644 --- a/portato/plugin.py +++ b/portato/plugin.py @@ -20,7 +20,7 @@ from lxml import etree from gettext import lgettext as _ from .constants import PLUGIN_DIR, XSD_LOCATION -from .helper import debug, info, error, flatten +from .helper import debug, info, warning, error, flatten class PluginImportException (ImportError): pass @@ -463,7 +463,7 @@ class PluginQueue: # type = "override" elif connect.is_override_type(): if self.hooks[hook.hook][1]: - warn(_("For hook '%(hook)s' an override is already defined by plugin '%(plugin)s'!"), {"hook": hook.hook, "plugin": self.hooks[hook.hook][1][0]}) + warning(_("For hook '%(hook)s' an override is already defined by plugin '%(plugin)s'!"), {"hook": hook.hook, "plugin": self.hooks[hook.hook][1][0]}) self.hooks[hook.hook][1][:1] = [connect] continue @@ -494,7 +494,7 @@ class PluginQueue: resolve(hook, list, idx, add) for l in list: - warn("Command for hook '%(hook)s' in plugin '%(plugin)s' could not be added due to missing dependant: '%(dep)s'!", {"hook": hook, "plugin": l.hook.plugin.name, "dep": l.depend_plugin}) + warning("Command for hook '%(hook)s' in plugin '%(plugin)s' could not be added due to missing dependant: '%(dep)s'!", {"hook": hook, "plugin": l.hook.plugin.name, "dep": l.depend_plugin}) for hook in before: resolve(hook, before[hook], 0, 0) |