iwla

iwla Commit Details

Date:2014-12-28 11:35:47 (6 years 6 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:f24fcbf287aac554a98c128d3030d7f9dc33e69b
Parents: 87612fb7862833ccd622c04260fb89461457f6ca
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