WebStack

examples/JavaServlet/LoginApp.py

658:be6a7047f3f8
2007-09-27 paulb [project @ 2007-09-27 17:47:19 by paulb] Updated notes on the deployment tool.
     1 #!/usr/bin/env python     2      3 from WebStack.Adapters.JavaServlet import deploy     4 from WebStack.Resources.Login import LoginResource, LoginAuthenticator     5      6 # NOTE: Not sure if the resource should be maintained in a resource pool.     7      8 resource = LoginResource(     9     LoginAuthenticator(    10         secret_key="horses",    11         credentials=(    12             ("badger", "abc"),    13             ("vole", "xyz"),    14         )    15     ),    16     use_redirect=0    17 )    18     19 LoginApp = deploy(resource)    20     21 # vim: tabstop=4 expandtab shiftwidth=4