[kupfer] kupfer_plugins: Make it a more normal plugin (no prefer catalog)



commit 9d4dbf10ebf2f2546e5e44bbc10b5d2422624a50
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Sun Jan 17 19:45:26 2010 +0100

    kupfer_plugins: Make it a more normal plugin (no prefer catalog)

 kupfer/plugin/kupfer_plugins.py |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/kupfer/plugin/kupfer_plugins.py b/kupfer/plugin/kupfer_plugins.py
index 6c14db5..cf40e8a 100644
--- a/kupfer/plugin/kupfer_plugins.py
+++ b/kupfer/plugin/kupfer_plugins.py
@@ -1,7 +1,7 @@
 import os
 
 from kupfer.objects import Action, Source, Leaf, FileLeaf, TextLeaf
-from kupfer import icons, plugin_support
+from kupfer import icons
 from kupfer import kupferui
 
 # Since this is a core plugin we break some rules
@@ -14,10 +14,6 @@ __description__ = _("Access Kupfer's plugin list in Kupfer")
 __version__ = ""
 __author__ = "Ulrik Sverdrup <ulrik sverdrup gmail com>"
 
-__kupfer_settings__ = plugin_support.PluginSettings(
-		plugin_support.SETTING_PREFER_CATALOG,
-)
-
 class ShowInfo (Action):
 	def __init__(self):
 		Action.__init__(self, _("Show Information"))
@@ -64,9 +60,11 @@ class ShowSource (Action):
 		return "dialog-information"
 
 class Plugin (Leaf):
+	# NOTE: Just to be sure that a plugin ranks lower than a
+	# like-named other object by default.
+	rank_adjust = -1
 	def __init__(self, obj, name):
 		Leaf.__init__(self, obj, name)
-		self.name_aliases.add(self.get_description())
 	def get_actions(self):
 		yield ShowInfo()
 		yield ShowSource()



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