From: richard Date: Fri, 2 Apr 2004 06:38:42 +0000 (+0000) Subject: added favicon X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=281a6bfe92e5129864b9ce0fbb1567e0d50b51ce;p=roundup.git added favicon git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2247 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index e04a1cc..fa03c4b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,6 +2,9 @@ This file contains the changes to the Roundup system over time. The entries are given with the most recent entry first. 2004-??-?? 0.7.0 +Feature: +- added a favicon (with crappy white background) + Fixed: - CSV export was busted (as was any action returning a result) - MultiMapping deviated from the Zope C implementation in a number of diff --git a/doc/roundup-favicon.ico b/doc/roundup-favicon.ico new file mode 100644 index 0000000..cf48e3c Binary files /dev/null and b/doc/roundup-favicon.ico differ diff --git a/roundup/scripts/roundup_server.py b/roundup/scripts/roundup_server.py index 5a9c509..67be0d6 100644 --- a/roundup/scripts/roundup_server.py +++ b/roundup/scripts/roundup_server.py @@ -17,7 +17,7 @@ """Command-line script that runs a server over roundup.cgi.client. -$Id: roundup_server.py,v 1.39 2004-02-15 21:55:10 richard Exp $ +$Id: roundup_server.py,v 1.40 2004-04-02 06:38:42 richard Exp $ """ __docformat__ = 'restructuredtext' @@ -60,14 +60,17 @@ LOGFILE = None import zlib, base64 favico = zlib.decompress(base64.decodestring(''' -eJyVUk2IQVEUfn4yaRYjibdQZiVba/ZE2djIUmHWFjaKGVmIlY2iFMVG2ViQhXqFSP6iFFJvw4uF -LGdWd743mpeMn+a88917Oue7955z3qEoET6FQkHx8iahKDV2A8B7XgERRf/EKMSUzyf8ypbbnnQy -mWBdr9eVSkVw3tJGoxGNRpvNZigUyufzWPv9Pvwcx0UiERj7/V4g73Y7j8fTarWMRmO73U4kEkKI -YZhardbr9eLxuOD0+/2ZTMZisYjFYpqmU6kU799uN5tNMBg8HA7ZbPY8GaTh8/mEipRKpcl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A74o1JM= '''.strip())) class RoundupRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): @@ -135,7 +138,11 @@ class RoundupRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): rest = self.path if rest == '/favicon.ico': - raise client.NotFound + self.send_response(200) + self.send_header('Content-Type', 'image/x-icon') + self.end_headers() + self.wfile.write(favico) + return i = rest.rfind('?') if i >= 0: