diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-13 13:35:53 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-13 13:35:53 +0200 |
commit | 4dade2c17002cc8cb3d2a99f6411feb59c4bf01e (patch) | |
tree | ed0955a6ac7bb15d699ccba4013dfa24037a0371 /plugins/notify.py | |
parent | fba4f1e38e81789b08d7c6fb5c61c1aabe4b769e (diff) | |
download | portato-4dade2c17002cc8cb3d2a99f6411feb59c4bf01e.tar.gz portato-4dade2c17002cc8cb3d2a99f6411feb59c4bf01e.tar.bz2 portato-4dade2c17002cc8cb3d2a99f6411feb59c4bf01e.zip |
Make the plugins now use the implicit 'helper' module
Diffstat (limited to 'plugins/notify.py')
-rw-r--r-- | plugins/notify.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/notify.py b/plugins/notify.py index 3670e20..4aba2c6 100644 --- a/plugins/notify.py +++ b/plugins/notify.py @@ -14,14 +14,13 @@ disable = False from portato import get_listener -from portato.helper import warning, error, debug from portato.constants import APP_ICON, APP try: import pynotify except ImportError: disable = True - warning("NOTIFY :: %s", _("Cannot import 'pynotify'.")) + helper.warning("NOTIFY :: %s", _("Cannot import 'pynotify'.")) class Notify (Plugin): __author__ = "René 'Necoro' Neumann" @@ -33,7 +32,7 @@ class Notify (Plugin): def notify (self, retcode, **kwargs): if retcode is None: - warning("NOTIFY :: %s", _("Notify called while process is still running!")) + helper.warning("NOTIFY :: %s", _("Notify called while process is still running!")) else: icon = APP_ICON if retcode == 0: |