iwla

iwla Commit Details

Date:2014-12-04 21:47:11 (6 years 8 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:4cb2736e22dcd856e8c49162ea2e52396b54f036
Parents: 2362fd1fd26460556dd06b11c55c179575d8eb30
Message:We're need a first version

Changes:
Mdisplay.py (3 diffs)
Miwla.py (1 diff)

File differences

display.py
116116
117117
118118
119
119
120120
121121
122122
......
153153
154154
155155
156
156
157157
158158
159159
......
261261
262262
263263
264
264
265265
266266
267267
if len(values) != len(self.cols):
raise ValueError('Invalid values size')
self.cols_cssclasses = [unicode(values)] * len(self.cols)
self.cols_cssclasses = listToStr(values)
def _buildHTML(self):
style = u''
self.short_titles = listToStr(self.short_titles)
self.nb_valid_rows = nb_valid_rows
# TOFIX
self.icon_path = u'resources/icon'
self.icon_path = u'/resources/icon'
# self.icon_path = self.iwla.getConfValue('icon_path', '/')
self.raw_rows = []
self.maxes = [0] * len(cols)
f.write(u'<head>')
f.write(u'<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />')
for css in self.css_path:
f.write(u'<link rel="stylesheet" href="%s"/>' % (css))
f.write(u'<link rel="stylesheet" href="/%s"/>' % (css))
if self.title:
f.write(u'<title>%s</title>' % (self.title))
f.write(u'</head>')
iwla.py
338338
339339
340340
341
342
343
341344
342345
343346
page = DisplayHTMLPage(title, filename, conf.css_path)
last_update = '<b>Last update</b> %s<br />' % (time.strftime('%d %b %Y %H:%M', time.localtime()))
page.appendBlock(DisplayHTMLRaw(last_update))
for year in self.meta_infos['stats'].keys():
self._generateDisplayMonthStats(page, year, self.meta_infos['stats'][year])

Archive Download the corresponding diff file

Branches

Tags