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.Twisted import deploy 4 from WebStack.Resources.Login import LoginResource, LoginAuthenticator 5 6 print "Serving..." 7 deploy( 8 LoginResource( 9 LoginAuthenticator( 10 secret_key="horses", 11 credentials=( 12 ("badger", "abc"), 13 ("vole", "xyz"), 14 ) 15 ) 16 ), 17 address=("", 8081) 18 ) 19 20 # vim: tabstop=4 expandtab shiftwidth=4