2009-03-21 | Paul Boddie | raw annotate files changeset graph | Added filename fix for uploads. Added a rollback method to the DirectoryRepository class in order to support the use of such repositories with StoreSelector instances. |
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 handle_errors=0 19 ) 20 21 # vim: tabstop=4 expandtab shiftwidth=4