Add max_x_displayed and create_x_page parameters for most display plugins

This commit is contained in:
2014-12-11 21:13:24 +01:00
parent 2df258676c
commit e012dc1b24
6 changed files with 140 additions and 93 deletions

View File

@@ -1,5 +1,6 @@
import os
import codecs
import time
#
# Create output HTML files
@@ -21,8 +22,14 @@ class DisplayHTMLRaw(object):
if html: f.write(html)
def build(self, f):
# t1 = time.time()
self._buildHTML()
# t2 = time.time()
# print 'Time for _buildHTML : %d seconds' % (t2-t1)
# t1 = time.time()
self._build(f, self.html)
# t2 = time.time()
# print 'Time for _build : %d seconds' % (t2-t1)
class DisplayHTMLBlock(DisplayHTMLRaw):
@@ -312,7 +319,9 @@ class DisplayHTMLBuild(object):
os.symlink(target, link_name)
for page in self.pages:
print 'Build %s' % (page.filename)
page.build(root)
print 'Built'
#
# Global functions