]> git.ipfire.org Git - ipfire.org.git/blobdiff - www/web/__init__.py
Merge branch 'master' of /srv/git/ipfire.org
[ipfire.org.git] / www / web / __init__.py
index 3d58fb086c9420113274db6d043e18f9b0ae2402..8a79a6def252c23b58e76691069e36d6e555661c 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("""<div class="post_info">%s</div>""" % (subtitle,))