annotate tools/base64 @ 4669:d7ac6c7bc371

Fix basic authentication. Instatiating the login action would fail if the user is not set. We now first set the user to anonymous and then try basic authentication if enabled.
author Ralf Schlatterbeck <rsc@runtux.com>
date Tue, 16 Oct 2012 18:27:33 +0200
parents 740102dfad1d
children c75defc1c2f0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2181
740102dfad1d favicon generation stuff
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
1 #!/usr/bin/env python
740102dfad1d favicon generation stuff
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
2 import zlib, base64, sys
740102dfad1d favicon generation stuff
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
3 print base64.encodestring(zlib.compress(sys.stdin.read()))

Roundup Issue Tracker: http://roundup-tracker.org/