From: Thierry Parmentelat Date: Thu, 8 Oct 2009 13:28:34 +0000 (+0000) Subject: module-version can do html X-Git-Tag: 4.3-rc13~19 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0ff7e68cebd273e32f481f4fec49342a1a97a18f;p=build.git module-version can do html --- diff --git a/module-tools.py b/module-tools.py index c6f88847..d4d5ff0c 100755 --- a/module-tools.py +++ b/module-tools.py @@ -249,13 +249,20 @@ class Module: if not hasattr(self,'body'): self.body='' self.body += '
' + text + '
' - def html_dump_header(self): + def html_print (self, txt): + if not self.options.www: + print txt + else: + self.html_store_pre(txt) + + @staticmethod + def html_dump_header(title): now=time.strftime("%Y-%m-%d %H:%M") print """ - Pending changes in %s + %s -

Pending changes in %s - status at %s

+

%s - status at %s