diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e03b74e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*~ +*.pyc +*.gz \ No newline at end of file diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..47cd19c --- /dev/null +++ b/ChangeLog @@ -0,0 +1,10 @@ +v0.2 (31/12/2014) +** User ** + Add referers_diff display plugin + Add year statistics in month details + +** Dev ** + Add istats_diff interface + +** Bugs ** + Forgot
tag diff --git a/conf.py b/conf.py index db32eef..71f89a3 100644 --- a/conf.py +++ b/conf.py @@ -19,7 +19,7 @@ reverse_dns_timeout = 0.2 # Count this addresses as hit page_to_hit_conf = [r'^.+/logo[/]?$'] # Count this addresses as page -hit_to_page_conf = [r'^.+/category/.+$', r'^.+/tag/.+$', r'^.+/archive/.+$', r'^.+/ljdc[/]?$'] +hit_to_page_conf = [r'^.+/category/.+$', r'^.+/tag/.+$', r'^.+/archive/.+$', r'^.+/ljdc[/]?$', r'^.+/source/tree/.*$'] # Because it's too long to build HTML when there is too much entries max_hits_displayed = 100 diff --git a/display.py b/display.py index cb98693..16c4593 100644 --- a/display.py +++ b/display.py @@ -52,6 +52,9 @@ class DisplayHTMLRaw(object): self._buildHTML() self._build(f, self.html) + def getTitle(self): + return '' + class DisplayHTMLBlock(DisplayHTMLRaw): def __init__(self, iwla, title=''): @@ -287,7 +290,7 @@ class DisplayHTMLPage(object): def appendBlock(self, block): self.blocks.append(block) - def build(self, root): + def build(self, root, displayVersion=True): filename = os.path.join(root, self.filename) base = os.path.dirname(filename) @@ -305,11 +308,12 @@ class DisplayHTMLPage(object): f.write(u'' % (css)) if self.title: f.write(u'