]> git.ipfire.org Git - ipfire.org.git/commitdiff
Updated web/__init__.py. Added anchor.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 24 May 2009 20:01:12 +0000 (22:01 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 24 May 2009 20:01:12 +0000 (22:01 +0200)
www/web/__init__.py

index 32fd65d94dd28deb6ac2d6d2b5107e8a3f935499..6b9cf0a2134d9b4532cabeaa5ac307730d107ef8 100644 (file)
@@ -9,6 +9,9 @@ import simplejson as json
 
 from http import HTTPResponse, WebError
 
+import cgitb
+cgitb.enable()
+
 class Data:
        def __init__(self):
                self.output = ""
@@ -171,7 +174,7 @@ class Languages:
 class Box(Data):
        def __init__(self, headline, subtitle=""):
                Data.__init__(self)
-               self.w("""<div class="post"><h3>%s</h3>""" % (headline,))
+               self.w("""<div class="post"><h3>%s</h3><a name="%s"></a>""" % (headline,headline,))
                if subtitle:
                        self.w("""<ul class="post_info"><li class="date">%s</li></ul>""" % (subtitle,))