Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias If NameLoad body ImportFrom alias ImportFrom alias orelse ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str While UnaryOpNot AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Lambda arguments args NameParam defaults vararg NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Str Lambda arguments args NameParam defaults vararg NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad TupleLoad Str NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list
N/A N/A 
Internal Webserver
~~~~~~~~~~~~~~~~~~

Launch a dumb webserver as thread. N/A os N/A time threading Thread acrylamid.utils force_unicode u acrylamid.compat PY2K acrylamid.helpers joinurl N/A PY2K N/A SocketServer TCPServer SimpleHTTPServer SimpleHTTPRequestHandler N/A socketserver TCPServer http.server SimpleHTTPRequestHandler ReuseAddressServer N/A TCPServer N/A N/A avoids socket.error: [Errno 48] Address already in use N/A allow_reuse_address True serve_forever N/A N/A self N/A N/A N/A Handle one request at a time until doomsday. N/A N/A N/A self kill_received N/A N/A N/A N/A self wait N/A N/A N/A N/A self handle_request N/A N/A N/A N/A time sleep 0.1 N/A N/A RequestHandler N/A SimpleHTTPRequestHandler N/A N/A This is a modified version of python's -m SimpleHTTPServer to
    serve on a specific sub directory of :func:`os.getcwd`. N/A www_root . N/A log_error N/A N/A N/A x N/A y None translate_path N/A N/A self path N/A N/A N/A path N/A N/A SimpleHTTPRequestHandler translate_path self path N/A N/A joinurl N/A u N/A N/A os getcwd N/A self www_root N/A path N/A N/A len N/A u N/A N/A os getcwd N/A end_headers N/A N/A self N/A N/A N/A N/A N/A self send_header Cache-Control max-age=0, must-revalidate N/A N/A N/A SimpleHTTPRequestHandler end_headers self N/A N/A Webserver N/A Thread N/A N/A A single-threaded webserver to serve while generation.

    :param port: port to listen on
    :param root: serve this directory under / __init__ N/A N/A self port root log_message N/A 8000 . N/A N/A N/A x N/A y None N/A N/A N/A N/A Thread __init__ self N/A Handler RequestHandler N/A N/A Handler www_root root N/A N/A Handler log_message log_message N/A N/A self httpd N/A ReuseAddressServer N/A port Handler N/A N/A N/A self httpd wait False N/A N/A N/A self httpd kill_received False N/A setwait N/A N/A self value N/A N/A N/A N/A N/A self httpd wait value N/A N/A wait N/A property N/A N/A N/A self N/A N/A N/A self httpd wait setwait run N/A N/A self N/A N/A N/A N/A N/A N/A self httpd serve_forever N/A N/A N/A self join 1 N/A shutdown N/A N/A self N/A N/A N/A "Sets kill_recieved and closes the server socket. N/A N/A N/A self httpd kill_received True N/A N/A N/A N/A N/A self httpd socket close N/A N/A