From 3fb1b897eaa39d917137b545c795f98a35325774 Mon Sep 17 00:00:00 2001 From: Gregory Soutade Date: Tue, 13 Jan 2015 18:53:50 +0100 Subject: [PATCH] Remove one s in operating systems plugin --- plugins/display/operating_systems.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/display/operating_systems.py b/plugins/display/operating_systems.py index 47ddd87..0b4324f 100644 --- a/plugins/display/operating_systems.py +++ b/plugins/display/operating_systems.py @@ -56,7 +56,7 @@ class IWLADisplayTopOperatingSystems(IPlugin): def load(self): self.icon_path = self.iwla.getConfValue('icon_path', '/') - self.create_families_pages = self.iwla.getConfValue('create_families_pages_page', True) + self.create_families_page = self.iwla.getConfValue('create_families_page_page', True) self.icon_names = {v:k for (k, v) in awstats_data.operating_systems_family.items()} return True @@ -69,7 +69,7 @@ class IWLADisplayTopOperatingSystems(IPlugin): operating_systems = sorted(operating_systems.items(), key=lambda t: t[1], reverse=True) # All in a page - if self.create_families_pages: + if self.create_families_page: title = createCurTitle(self.iwla, u'All Operating Systems') filename = 'operating_systems.html' path = self.iwla.getCurDisplayPath(filename) @@ -86,7 +86,7 @@ class IWLADisplayTopOperatingSystems(IPlugin): # Families in index title = self.iwla._(u'Operating Systems') - if self.create_families_pages: + if self.create_families_page: link = '%s' % (filename, self.iwla._(u'Details')) title = '%s - %s' % (title, link) @@ -97,4 +97,5 @@ class IWLADisplayTopOperatingSystems(IPlugin): for (family, entrance) in os_families: icon = '' % (self.icon_path, self.icon_names[family]) table.appendRow([icon, family, entrance]) + table.computeRatio(2) index.appendBlock(table)