diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-11-16 20:14:49 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-11-16 20:14:49 (GMT) |
commit | 3f65f57c22d9e075a5e98c8f3d2efc9ed0343c22 (patch) | |
tree | bb8256f8ee9267056ae6fe62c3af8fa823cdefc9 /exporthtml.py | |
parent | 1501c9dc02babc748e92345464397ceebae90c8c (diff) |
added date stamp to coverpage
Diffstat (limited to 'exporthtml.py')
-rw-r--r-- | exporthtml.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/exporthtml.py b/exporthtml.py index 3adf432..b56116d 100644 --- a/exporthtml.py +++ b/exporthtml.py @@ -16,6 +16,7 @@ pygtk.require('2.0') import gtk from glib import GError import os.path +import time from cgi import escape from gettext import gettext as _ @@ -66,8 +67,10 @@ def save_html(activity, nick): htmlcode += HTML_GLUE['slide'][1] + \ HTML_GLUE['div'][0] htmlcode += HTML_GLUE['h1'][0] + nick + HTML_GLUE['h1'][1] + htmlcode += HTML_GLUE['body'][0] + \ + time.strftime('%x', time.localtime()) + \ + HTML_GLUE['body'][1] htmlcode += HTML_GLUE['div'][1] - # TODO: Add date for i, dsobj in enumerate(activity.dsobjects): htmlcode += HTML_GLUE['slide'][0] + str(i) |