From 92017bd23d9b29810fb6a5a4987daa810fe5bb42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 4 Jul 2008 17:58:19 +0200 Subject: Ported remaining plugins --- plugins/exception.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 plugins/exception.py (limited to 'plugins/exception.py') diff --git a/plugins/exception.py b/plugins/exception.py new file mode 100644 index 0000000..e653853 --- /dev/null +++ b/plugins/exception.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# +# File: plugins/exception.py +# This file is part of the Portato-Project, a graphical portage-frontend. +# +# Copyright (C) 2008 René 'Necoro' Neumann +# This is free software. You may redistribute copies of it under the terms of +# the GNU General Public License version 2. +# There is NO WARRANTY, to the extent permitted by law. +# +# Written by René 'Necoro' Neumann + +def throw (*args, **kwargs): + raise Exception, "As requested, Sir!" + +p = Plugin() +p.__name__ = "ExceptionThrower" +p.__author__ = "René 'Necoro' Neumann" +p.add_menu("Throw exception", throw) +register(p) -- cgit v1.2.3