[kupfer] plugin_support: Add support for alternatives



commit 3f9cf72766a8138192e7399f78214ec31de179e7
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Sat Aug 22 04:56:28 2009 +0200

    plugin_support: Add support for alternatives

 kupfer/plugin_support.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin_support.py b/kupfer/plugin_support.py
index 9b8a98b..dcc1a20 100644
--- a/kupfer/plugin_support.py
+++ b/kupfer/plugin_support.py
@@ -56,3 +56,6 @@ class PluginSettings (pretty.OutputMixin):
 	def get_label(self, key):
 		"""Return label for setting @key"""
 		return self.setting_descriptions[key]["label"]
+	def get_alternatives(self, key):
+		"""Return alternatives for setting @key (if any)"""
+		return self.setting_descriptions[key].get("alternatives")



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