summaryrefslogtreecommitdiff
path: root/plugins/exception.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-07-05 02:54:20 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-07-05 02:54:20 +0200
commitccbffddc8d4d0b983536ceb46cabf1c698cc5e78 (patch)
treebf5a9ee04a110d4dd63ce514716c5e447bfbf0d6 /plugins/exception.py
parent30c88195ee02d4fa745c1c0202644ec143c57ba6 (diff)
downloadportato-ccbffddc8d4d0b983536ceb46cabf1c698cc5e78.tar.gz
portato-ccbffddc8d4d0b983536ceb46cabf1c698cc5e78.tar.bz2
portato-ccbffddc8d4d0b983536ceb46cabf1c698cc5e78.zip
Change plugins to use WidgetPlugin if needed
Diffstat (limited to 'plugins/exception.py')
-rw-r--r--plugins/exception.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/exception.py b/plugins/exception.py
index 23065e6..3fe7287 100644
--- a/plugins/exception.py
+++ b/plugins/exception.py
@@ -13,8 +13,8 @@
def throw (*args, **kwargs):
raise Exception, "As requested, Sir!"
-p = Plugin()
+p = WidgetPlugin()
p.__name__ = "ExceptionThrower"
p.__author__ = "René 'Necoro' Neumann"
-p.create_widget("Plugin Menu", "Throw exception", activate = throw)
+p.widget_init = lambda: p.create_widget("Plugin Menu", "Throw exception", activate = throw)
register(p)