Add all_visits plugin
This commit is contained in:
14
display.py
14
display.py
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user