From 945bf7cf9725339e05d88127e54f1045e9c33f05 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Tue, 27 Dec 2011 17:35:12 +0000 Subject: [PATCH] sort the plugins in the first two Help => Plugin Manager tabs svn: r18656 --- src/gui/plug/_windows.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/gui/plug/_windows.py b/src/gui/plug/_windows.py index 91a0b6c1e..03b0757fc 100644 --- a/src/gui/plug/_windows.py +++ b/src/gui/plug/_windows.py @@ -477,7 +477,7 @@ class PluginStatus(ManagedWindow.ManagedWindow): '%s' % _('Fail'), i[0], str(i[1][1]), i[1], pdata.id, hiddenstr]) - success_list = self.__pmgr.get_success_list() + success_list = sorted(self.__pmgr.get_success_list()) for i in success_list: # i = (filename, module, pdata) pdata = i[2] @@ -494,6 +494,7 @@ class PluginStatus(ManagedWindow.ManagedWindow): def __populate_reg_list(self): """ Build list of registered plugins""" for (type, typestr) in PTYPE_STR.iteritems(): + registered_plugins = [] for pdata in self.__preg.type_plugins(type): # model: plugintype, hidden, pluginname, plugindescr, pluginid hidden = pdata.id in self.hidden @@ -501,9 +502,10 @@ class PluginStatus(ManagedWindow.ManagedWindow): hiddenstr = self.HIDDEN else: hiddenstr = self.AVAILABLE - self.model_reg.append(row=[ - typestr, hiddenstr, pdata.name, pdata.description, - pdata.id]) + registered_plugins.append([typestr, hiddenstr, pdata.name, + pdata.description, pdata.id]) + for row in sorted(registered_plugins): + self.model_reg.append(row) def __rebuild_load_list(self): self.model.clear()