From e021fff1ef2be1327b3edc2bb43332753a1fff16 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Mon, 23 Jun 2008 22:02:44 +0200 Subject: Moved GtkThread to gui.utils --- portato/plugins/new_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portato/plugins') diff --git a/portato/plugins/new_version.py b/portato/plugins/new_version.py index 462d67c..fe69292 100644 --- a/portato/plugins/new_version.py +++ b/portato/plugins/new_version.py @@ -7,7 +7,7 @@ import gobject from portato.helper import debug, warning from portato import get_listener from portato.constants import VERSION, APP_ICON, APP -from portato.gui.exception_handling import GtkThread +from portato.gui.utils import GtkThread def find_version (rev): try: -- cgit v1.2.3-54-g00ecf From f5c988728165581fab7331a706423c1c0d809688 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Mon, 23 Jun 2008 22:12:53 +0200 Subject: Added plugin, which simply throws an exception --- plugins/exception.xml | 13 +++++++++++++ portato/plugins/exception.py | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 plugins/exception.xml create mode 100644 portato/plugins/exception.py (limited to 'portato/plugins') diff --git a/plugins/exception.xml b/plugins/exception.xml new file mode 100644 index 0000000..385e743 --- /dev/null +++ b/plugins/exception.xml @@ -0,0 +1,13 @@ + + + + René 'Necoro' Neumann + Exception Thrower + + portato.plugins.exception + + + Throw exception + + + diff --git a/portato/plugins/exception.py b/portato/plugins/exception.py new file mode 100644 index 0000000..64bdb77 --- /dev/null +++ b/portato/plugins/exception.py @@ -0,0 +1,2 @@ +def throw (*args, **kwargs): + raise Exception, "As requested, Sir!" -- cgit v1.2.3-54-g00ecf