X-Git-Url: https://codewiz.org/gitweb?p=geekigeeki.git;a=blobdiff_plain;f=geekigeeki.py;h=12b6b7cdaec57d05e14baadd381c17a6431029bb;hp=ad4fc5dd0683fd99b62fd6a5df85903cb4fa1da9;hb=75836706224e9f6b8ede6c59deea646e31672924;hpb=9ba86215f478f6ec624522d42e9aeb9f1eb9eb30 diff --git a/geekigeeki.py b/geekigeeki.py index ad4fc5d..12b6b7c 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -2,7 +2,7 @@ # # Copyright 1999, 2000 Martin Pool # Copyright 2002 Gerardo Poggiali -# Copyright 2007 Bernardo Innocenti +# Copyright 2007 Bernardo Innocenti # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -103,15 +103,16 @@ def send_title(name, text="Limbo", msg=None, msg_type='error'): # Head emit_header() - print """ - -""" + print '' + print '' + + site_name = globals().get('site_name', 'Unconfigured Site') print "%s: %s" % (site_name, text) print ' ' if not name: print ' ' - if css_url: + if globals().has_key('css_url'): print ' ' % css_url print '' @@ -128,15 +129,17 @@ def send_title(name, text="Limbo", msg=None, msg_type='error'): print '