[kupfer] plugin.kupfer_plugins: Description as alias



commit f65fafb7d7bd521045ea82be5730d09f0e0af8c4
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Wed Oct 28 21:16:59 2009 +0100

    plugin.kupfer_plugins: Description as alias

 kupfer/plugin/kupfer_plugins.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/kupfer_plugins.py b/kupfer/plugin/kupfer_plugins.py
index ba0e5f7..23a04c8 100644
--- a/kupfer/plugin/kupfer_plugins.py
+++ b/kupfer/plugin/kupfer_plugins.py
@@ -12,6 +12,9 @@ __version__ = ""
 __author__ = "Ulrik Sverdrup <ulrik sverdrup gmail com>"
 
 class Plugin (Leaf):
+	def __init__(self, obj, name):
+		Leaf.__init__(self, obj, name)
+		self.name_aliases.add(self.get_description())
 	def get_description(self):
 		setctl = settings.GetSettingsController()
 		enabled = setctl.get_plugin_enabled(self.object["name"])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]