Do not manage dry run inside display part, but directly in iwla
This commit is contained in:
parent
a0a1f42df4
commit
6500d98bdd
|
@ -356,8 +356,6 @@ class DisplayHTMLPage(object):
|
|||
|
||||
self.logger.debug('Write %s' % (filename))
|
||||
|
||||
if self.iwla.dry_run: return
|
||||
|
||||
f = codecs.open(filename, 'w', 'utf-8')
|
||||
f.write(u'<!DOCTYPE html>')
|
||||
f.write(u'<html>')
|
||||
|
@ -406,7 +404,6 @@ class DisplayHTMLBuild(object):
|
|||
self.pages.append(page)
|
||||
|
||||
def build(self, root):
|
||||
if not self.iwla.dry_run:
|
||||
display_root = self.iwla.getConfValue('DISPLAY_ROOT', '')
|
||||
if not os.path.exists(display_root):
|
||||
os.makedirs(display_root)
|
||||
|
|
Loading…
Reference in New Issue
Block a user