iwla

iwla Commit Details

Date:2015-01-13 18:53:50 (6 years 6 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:3fb1b897eaa39d917137b545c795f98a35325774
Parents: 75b11c2e979d532cdf987a4879332aac238372aa
Message:Remove one s in operating systems plugin

Changes:
Mplugins/display/operating_systems.py (4 diffs)

File differences

plugins/display/operating_systems.py
5656
5757
5858
59
59
6060
6161
6262
......
6969
7070
7171
72
72
7373
7474
7575
......
8686
8787
8888
89
89
9090
9191
9292
......
9797
9898
9999
100
100101
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
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)
# Families in index
title = self.iwla._(u'Operating Systems')
if self.create_families_pages:
if self.create_families_page:
link = '<a href=\'%s\'>%s</a>' % (filename, self.iwla._(u'Details'))
title = '%s - %s' % (title, link)
for (family, entrance) in os_families:
icon = '<img src="/%s/os/%s.png"/>' % (self.icon_path, self.icon_names[family])
table.appendRow([icon, family, entrance])
table.computeRatio(2)
index.appendBlock(table)

Archive Download the corresponding diff file

Branches

Tags