iwla

iwla Commit Details

Date:2014-12-11 22:31:40 (6 years 7 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:9ab1687c7613d4d4423140a8e362f6d19abd08f7
Parents: e012dc1b24fb49d83c06ffc8171115f2f990e72b
Message:Fix two bugs : don't break on logs < last_access and -1 missed for cur day CSS

Changes:
Mconf.py (2 diffs)
Mdisplay.py (1 diff)
Miwla.py (2 diffs)

File differences

conf.py
1010
1111
1212
13
13
1414
1515
1616
......
2020
2121
2222
23
24
25
26
# Hooks used
pre_analysis_hooks = ['page_to_hit', 'robots']
post_analysis_hooks = ['referers', 'top_pages', 'top_downloads', 'top_hits']
post_analysis_hooks = ['referers', 'top_pages', 'top_downloads', 'top_hits', 'reverse_dns']
display_hooks = ['top_visitors', 'all_visits', 'referers', 'top_pages', 'top_downloads', 'top_hits']
# Reverse DNS timeout
page_to_hit_conf = [r'^.+/logo[/]?$']
# Count this addresses as page
hit_to_page_conf = [r'^.+/category/.+$', r'^.+/tag/.+$', r'^.+/archive/.+$', r'^.+/ljdc[/]?$']
# Because it's too long to build HTML when there is too much entries
max_hits_displayed = 100
max_downloads_displayed = 100
display.py
319319
320320
321321
322
322
323323
324
324
325325
326326
327327
os.symlink(target, link_name)
for page in self.pages:
print 'Build %s' % (page.filename)
# print 'Build %s' % (page.filename)
page.build(root)
print 'Built'
# print 'Built'
#
# Global functions
iwla.py
366366
367367
368368
369
369
370370
371371
372372
......
616616
617617
618618
619
619
620620
621621
622622
if week_day == 5 or week_day == 6:
days.setRowCSSClass(i-1, 'iwla_weekend')
if adate == date.today():
css = days.getCellCSSClass(i, 0)
css = days.getCellCSSClass(i-1, 0)
if css: css = '%s %s' % (css, 'iwla_curday')
else: css = 'iwla_curday'
days.setCellCSSClass(i-1, 0, css)
if groups:
if not self._newHit(groups.groupdict()):
break
continue
else:
print "No match for " + l
#break

Archive Download the corresponding diff file

Branches

Tags