WebStack

examples/ModPython/SimpleApp/SimpleHandler.py

752:7a9ee094a4b7
2008-02-02 paulb [project @ 2008-02-02 23:35:36 by paulb] Removed local default encoding attributes. Improved the SimpleMap resource documentation and initialisation features.
     1 #!/usr/bin/env python     2      3 # NOTE: Path manipulation may require manual customisation.     4      5 import sys, os     6 sys.path.append(os.path.abspath(os.path.join(__file__, "../../../Common")))     7      8 from WebStack.Adapters.ModPython import deploy     9 from Simple import SimpleResource    10     11 # NOTE: Not sure if the resource should be maintained in a resource pool.    12     13 resource = SimpleResource()    14     15 handler, _no_authentication = deploy(resource, handle_errors=0)    16     17 # vim: tabstop=4 expandtab shiftwidth=4