Add all_visits plugin

This commit is contained in:
Grégory Soutadé
2014-11-25 16:59:29 +01:00
parent 7405cf237a
commit 6505ca3ee5
4 changed files with 58 additions and 2 deletions

View File

@@ -1,12 +1,24 @@
class DisplayHTMLBlock(object):
def __init__(self, title):
def __init__(self, title=''):
self.title = title
def build(self, f):
pass
class DisplayHTMLRawBlock(DisplayHTMLBlock):
def __init__(self, title=''):
super(DisplayHTMLRawBlock, self).__init__(title)
self.html = ''
def setRawHTML(self, html):
self.html = html
def build(self, f):
f.write(self.html)
class DisplayHTMLBlockTable(DisplayHTMLBlock):
def __init__(self, title, cols):