From 4cb2736e22dcd856e8c49162ea2e52396b54f036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Thu, 4 Dec 2014 21:47:11 +0100 Subject: [PATCH] We're need a first version --- display.py | 6 +++--- iwla.py | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/display.py b/display.py index bb14313..0bb6b26 100644 --- a/display.py +++ b/display.py @@ -116,7 +116,7 @@ class DisplayHTMLBlockTable(DisplayHTMLBlock): 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'' @@ -153,7 +153,7 @@ class DisplayHTMLBlockTableWithGraph(DisplayHTMLBlockTable): 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) @@ -261,7 +261,7 @@ class DisplayHTMLPage(object): f.write(u'') f.write(u'') for css in self.css_path: - f.write(u'' % (css)) + f.write(u'' % (css)) if self.title: f.write(u'%s' % (self.title)) f.write(u'') diff --git a/iwla.py b/iwla.py index 634f0b0..72a9774 100755 --- a/iwla.py +++ b/iwla.py @@ -338,6 +338,9 @@ class IWLA(object): page = DisplayHTMLPage(title, filename, conf.css_path) + last_update = 'Last update %s
' % (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])