iwla

iwla Commit Details

Date:2014-12-28 11:35:47 (6 years 6 months ago)
Author:Grégory Soutadé
Commit:f30510ca70d024ea4ec34179b82a7e6685f91761
Parents: c56bb65b4f2d7ba4cb21899fef94f86db8874759
Message:Bug fixes in referers_diff

Changes:
Mplugins/display/referers_diff.py (2 diffs)

File differences

plugins/display/referers_diff.py
5656
5757
5858
59
59
6060
6161
6262
......
6767
6868
6969
70
70
7171
7272
7373
if not self.iwla.getConfValue('create_all_key_phrases_page', True):
return False
month_stats = self.iwla.getMonthStats()
self.cur_key_phrases = {k:v for (k,v) in month_stats.get('key_phrases', {})}
self.cur_key_phrases = {k:v for (k,v) in month_stats.get('key_phrases', {}).items()}
return True
def hook(self):
path = self.iwla.getCurDisplayPath(filename)
page = display.getPage(path)
if not page: return
title = self.iwla._(u'All key phrases')
title = self.iwla._(u'Key phrases')
referers_block = page.getBlock(title)
kp_diff = {}

Archive Download the corresponding diff file

Branches

Tags