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 WebStackURLParser 8 from 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 anonymous_parameter_name="anonymous" 21 ) 22 23 urlParser = WebStackURLParser(resource) 24 25 # vim: tabstop=4 expandtab shiftwidth=4