Module Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Import alias alias ImportFrom alias ImportFrom alias Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str body Global identifier Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call NameLoad Str ListLoad TupleLoad Str SubscriptLoad NameLoad Index Num Return ListLoad Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Str ListLoad TupleLoad Str Str Return ListLoad BinOpMod Str NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad Str body ImportFrom alias If NameLoad body ImportFrom alias ClassDef bases NameLoad AttributeLoad NameLoad attr body Pass decorator_list orelse ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list Assign NameStore Call NameLoad TupleLoad Str NameLoad AttributeLoad NameLoad attr If NameLoad body Global identifier Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Print Str decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr
N/A N/A A simple, standalone web server that serves FeatureServer requests. N/A __author__ MetaCarta N/A __version__ FeatureServer $Id: featureserver_http_server.py 564 2008-05-24 14:32:18Z crschmidt $ N/A __license__ Clear BSD N/A __copyright__ 2006-2008 MetaCarta N/A mimetypes os optparse OptionParser FeatureServer.Server wsgi_app N/A local_path_location None local_app N/A N/A environ start_response N/A N/A N/A N/A N/A N/A environ N/A PATH_INFO startswith /static/ N/A N/A local_path_location N/A path N/A N/A N/A environ N/A PATH_INFO replace /static/ N/A N/A N/A path lstrip / N/A mime N/A N/A mimetypes guess_type path N/A N/A N/A f N/A open N/A N/A N/A os path join local_path_location path N/A N/A start_response 200 OK N/A N/A Content-Type N/A mime N/A 0 N/A N/A N/A N/A f read N/A N/A N/A Exception N/A E N/A N/A N/A start_response 404 Not Found N/A N/A Content-Type text/plain N/A N/A N/A Not found: %s E N/A N/A wsgi_app environ start_response N/A run N/A N/A port thread local_path N/A 8080 False N/A wsgiref simple_server N/A thread N/A SocketServer ThreadingMixIn myServer N/A ThreadingMixIn N/A simple_server WSGIServer N/A N/A N/A N/A myServer N/A N/A simple_server WSGIServer N/A N/A N/A N/A httpd N/A myServer N/A port N/A simple_server WSGIRequestHandler N/A local_path N/A N/A local_path_location N/A local_path_location local_path N/A N/A N/A httpd set_app local_app N/A N/A N/A N/A httpd set_app wsgi_app N/A N/A N/A N/A Listening on port %s port N/A N/A N/A httpd serve_forever N/A N/A N/A KeyboardInterrupt N/A N/A Shutting down. N/A N/A N/A __name__ __main__ N/A N/A parser N/A OptionParser version __version__ description __doc__ N/A N/A N/A parser add_option -p --port help port to run webserver on. Default is 8080 dest port action store type int default 8080 N/A N/A N/A parser add_option -t help enable threading in HTTP Server. dest thread action store_true default False N/A N/A N/A parser add_option -l help serve files from local disk dest local_path N/A N/A options args N/A N/A parser parse_args N/A N/A run N/A options port N/A options thread N/A options local_path