Module Import alias identifier Import alias identifier Import alias identifier TryExcept body Import alias handlers ExceptHandler body Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body If NameLoad body Return Call AttributeLoad Call NameLoad Str Str attr Return Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Return Str orelse Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Return Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad If CompareEq NameLoad Str body Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr
N/A N/A cherrypy cp N/A sx.pisa3 pisa N/A cStringIO StringIO N/A N/A N/A kid N/A N/A N/A N/A kid None PDFDemo N/A object N/A N/A 
    Simple demo showing a form where you can enter some HTML code.
    After sending PISA is used to convert HTML to PDF and publish
    it directly.
     index N/A N/A self N/A N/A N/A kid N/A N/A N/A N/A N/A file demo-cherrypy.html r read N/A 
        <html><body>
            Please enter some HTML code:
            <form action="download" method="post" enctype="multipart/form-data">
            <textarea name="data">Hello <strong>World</strong></textarea>
            <br />
            <input type="submit" value="Convert HTML to PDF" />
            </form>
        </body></html>
         N/A N/A cp expose download N/A N/A self data N/A N/A N/A kid N/A N/A data N/A <?xml version="1.0" encoding="utf-8"?>
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                <html xmlns="http://www.w3.org/1999/xhtml"
                      xmlns:py="http://purl.org/kid/ns#">
                  <head>
                    <title>PDF Demo</title>
                  </head>
                  <body>%s</body>
                </html> data N/A test N/A N/A kid Template source data N/A data N/A N/A test serialize output xhtml N/A result N/A N/A StringIO StringIO N/A pdf N/A N/A pisa CreatePDF N/A N/A StringIO StringIO data result N/A N/A pdf err N/A N/A We had some errors in HTML N/A N/A N/A N/A N/A cp response headers N/A content-type application/pdf N/A N/A N/A result getvalue N/A N/A cp expose N/A N/A N/A N/A N/A cp tree mount N/A PDFDemo N/A N/A __name__ __main__ N/A N/A os.path N/A N/A N/A N/A cp config update N/A N/A N/A os path join N/A N/A __file__ replace .py .conf N/A N/A N/A N/A cp server quickstart N/A N/A N/A N/A cp engine start