From 2d2f6823f5360a5287b4b19d035cad4a5611fa3a Mon Sep 17 00:00:00 2001
From: necoro <>
Date: Sat, 31 Mar 2007 19:29:26 +0000
Subject: Allowed Plugins to have a menu
---
portato/plugin.py | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 66 insertions(+), 3 deletions(-)
(limited to 'portato/plugin.py')
diff --git a/portato/plugin.py b/portato/plugin.py
index 4ce4099..c6e3288 100644
--- a/portato/plugin.py
+++ b/portato/plugin.py
@@ -14,7 +14,7 @@ import os, os.path
from xml.dom.minidom import parse
from constants import PLUGIN_DIR
-from helper import debug
+from helper import debug, flatten
class ParseException (Exception):
pass
@@ -23,6 +23,46 @@ def error (reason, p):
reason = "("+reason+")"
debug("Malformed plugin:", p, reason, minus=1, error = 1)
+class Menu:
+ """A single