2005-08-25 | paulb | raw annotate files changeset graph | [project @ 2005-08-25 22:39:52 by paulb] Changed the default path encoding to UTF-8. Whilst this takes some liberties, it is likely that UTF-8 is a reasonable default, and the underlying default of ISO-8859-1 provides a fair level of safety. |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters import JavaServlet 4 from Auth import AuthResource, AuthAuthenticator 5 from javax.servlet.http import HttpServlet 6 7 class AuthApp(HttpServlet): 8 def __init__(self): 9 HttpServlet.__init__(self) 10 self.dispatcher = JavaServlet.Dispatcher(AuthResource(), AuthAuthenticator()) 11 12 def service(self, request, response): 13 self.dispatcher.service(request, response) 14 15 # vim: tabstop=4 expandtab shiftwidth=4