Add max_x_displayed and create_x_page parameters for most display plugins
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user