1 #!/usr/bin/env python 2 3 """ 4 Webware context for the Login application (post Webware 0.8.1). 5 """ 6 7 from WebStack.Adapters.Webware import deploy 8 from WebStack.Resources.Login import LoginResource, LoginAuthenticator 9 10 # NOTE: Initialising a shared resource. 11 12 resource = LoginResource( 13 LoginAuthenticator( 14 secret_key="horses", 15 credentials=( 16 ("badger", "abc"), 17 ("vole", "xyz"), 18 ) 19 ) 20 ) 21 22 urlParser = deploy(resource, handle_errors=0) 23 24 # vim: tabstop=4 expandtab shiftwidth=4