summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugins/etc_proposals.py4
-rw-r--r--plugins/notify.py5
-rw-r--r--plugins/package_details.py1
3 files changed, 3 insertions, 7 deletions
diff --git a/plugins/etc_proposals.py b/plugins/etc_proposals.py
index 83b38f7..052f3d3 100644
--- a/plugins/etc_proposals.py
+++ b/plugins/etc_proposals.py
@@ -10,8 +10,6 @@
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>
-from portato.helper import error
-
import os
from subprocess import Popen
@@ -31,7 +29,7 @@ class EtcProposals (WidgetPlugin):
if os.getuid() == 0:
Popen(self.prog+options)
else:
- error("ETC_PROPOSALS :: %s",_("Cannot start etc-proposals. Not root!"))
+ helper.error("ETC_PROPOSALS :: %s",_("Cannot start etc-proposals. Not root!"))
def hook (self, *args, **kwargs):
"""Entry point for this plugin."""
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:
diff --git a/plugins/package_details.py b/plugins/package_details.py
index 7d739a3..19f3126 100644
--- a/plugins/package_details.py
+++ b/plugins/package_details.py
@@ -30,7 +30,6 @@ class Detail (WidgetPlugin):
_widget_name_ = None
def init(self):
- raise Exception, "e"
self.add_call("update_table", self._update, type = "after")
def widget_init (self):