From 1670da52d24266b1b88bbe70517d71dc3f088359 Mon Sep 17 00:00:00 2001 From: iMaxxx Date: Thu, 2 Jan 2014 21:31:35 +0100 Subject: [PATCH] Category browsing updated; ready for alternative packages --- .../MyMetrix/store_Packages_Browse.py | 5 +++-- .../MyMetrix/store_Packages_Categories.py | 22 ++++++++++--------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/usr/lib/enigma2/python/Plugins/Extensions/MyMetrix/store_Packages_Browse.py b/usr/lib/enigma2/python/Plugins/Extensions/MyMetrix/store_Packages_Browse.py index c53c115..81fa920 100755 --- a/usr/lib/enigma2/python/Plugins/Extensions/MyMetrix/store_Packages_Browse.py +++ b/usr/lib/enigma2/python/Plugins/Extensions/MyMetrix/store_Packages_Browse.py @@ -104,11 +104,11 @@ class OpenScreen(ConfigListScreen, Screen ): """ - def __init__(self, session,category_id = "%",category_name=_("Plugins"),onlyupdates=False, limit = "",onlyinstalled=False): + def __init__(self, session,category_id = "%",category_name=_("Plugins"),onlyupdates=False, limit = "",orderby="date_created desc",onlyinstalled=False): Screen.__init__(self, session) self.limit = limit self["title"] = Label("OpenStore // "+_(category_name)) - self.orderby="date_created desc" + self.orderby=orderby self.url = metrixDefaults.URL_GET_PACKAGES self["itemname"] = Label() self["author"] = Label() @@ -190,6 +190,7 @@ def getPackages(self,isactive=""): 'orderby':self.orderby+" "+self.limit, 'category_id':str(self.category_id)} data = metrixCore.getWeb(self.url,True,params) + print str(params) if "