Module Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Num If NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign NameStore ListLoad TupleLoad Str Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad Str BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list
N/A N/A 
Adapt Pycopia XML/XHTML objects to WSGI.

 WSGIAdapter N/A object N/A N/A Adapt the emit() method of a POM document to the WSGI spec. It is an
    iterable object that you can return to the WSGI caller. This is also
    the file-like for the document's (or node's) emit() method.
    First, pass this to a document or node's emit() method. Then, return
    it to the WSGI caller.
    Alternatively, use the WSGI write function by passing it to the
    constructor.

    Use it like this:

    def SampleApp(environ, start_response): # use write callabled
      doc = <POMDocument from somewhere>
      response = "200 OK"
      headers = [("Content-Type", doc.MIMETYPE)]
      writer = start_response(response, headers)
      adapter = WSGIAdapter(writer=writer)
      doc.emit(adapter)
      return adapter

    def SampleApp2(environ, start_response): # use iterator
      doc = <POMDocument from somewhere>
      adapter = WSGIAdapter(doc)
      start_response(adapter.response, adapter.headers)
      doc.emit(adapter)
      return adapter

     __init__ N/A N/A self doc writer N/A None None N/A N/A writer N/A N/A N/A self write writer N/A N/A self _chunks N/A N/A N/A self length 0 N/A doc N/A N/A N/A self mimetype N/A doc MIMETYPE N/A N/A self charset N/A doc encoding N/A N/A N/A self mimetype None N/A N/A self charset None N/A __iter__ N/A N/A self N/A N/A N/A N/A iter N/A self _chunks N/A __len__ N/A N/A self N/A N/A N/A N/A self length N/A __del__ N/A N/A self N/A N/A N/A N/A N/A self close N/A close N/A N/A self N/A N/A N/A N/A self _chunks N/A N/A N/A self length 0 N/A write N/A N/A self data N/A N/A N/A data N/A N/A data encode N/A self charset N/A N/A self length N/A len data N/A N/A N/A N/A self _chunks append data N/A get_headers N/A N/A self N/A N/A N/A N/A self length N/A N/A rv N/A N/A Content-Length N/A str N/A self length N/A N/A rv N/A N/A N/A self mimetype N/A N/A N/A N/A rv append N/A Content-Type N/A %s; charset=%s N/A N/A self mimetype N/A self charset N/A rv N/A N/A headers N/A property get_headers None None WSGI style header list N/A get_iterator N/A N/A doc writer encoding N/A None None N/A N/A Return an iterable of the content. N/A it N/A WSGIAdapter mimetype N/A doc MIMETYPE writer writer N/A N/A N/A doc emit it encoding N/A it N/A