2007-12-06 | paulb | file changeset files shortlog | [project @ 2007-12-06 23:38:37 by paulb] Added an optional attribute name, for use when retaining the store object, to StoreSelector objects. |
paulb@139 | 1 | #!/usr/bin/env python |
paulb@139 | 2 | |
paulb@324 | 3 | from WebStack.Adapters.Twisted import deploy |
paulb@156 | 4 | from WebStack.Resources.Login import LoginResource, LoginAuthenticator |
paulb@139 | 5 | |
paulb@324 | 6 | print "Serving..." |
paulb@324 | 7 | deploy( |
paulb@324 | 8 | LoginResource( |
paulb@324 | 9 | LoginAuthenticator( |
paulb@324 | 10 | secret_key="horses", |
paulb@324 | 11 | credentials=( |
paulb@324 | 12 | ("badger", "abc"), |
paulb@324 | 13 | ("vole", "xyz"), |
paulb@324 | 14 | ) |
paulb@139 | 15 | ) |
paulb@324 | 16 | ), |
paulb@718 | 17 | address=("", 8081), |
paulb@718 | 18 | handle_errors=0 |
paulb@139 | 19 | ) |
paulb@139 | 20 | |
paulb@139 | 21 | # vim: tabstop=4 expandtab shiftwidth=4 |