Logo Search packages:      
Sourcecode: jaxml version File versions  Download package

def jaxml::_TAGGED_document::_output (   self,
  file = "-" 
) [private]
Ouput the page, with indentation.

   file
        the optional file object or filename to output to
        ("-" or None or "" means sys.stdout)

Reimplemented in jaxml::CGI_document.

Definition at line 714 of file jaxml.py.

                                      :
                """Ouput the page, with indentation.

                   file
                        the optional file object or filename to output to
                        ("-" or None or "" means sys.stdout)
                """
                isopen = 0
                if (type(file) == type("")) or (file is None) :
                        if file and (file != "-") :
                                outf = open(file, "w")
                                isopen = 1
                        else :
                                outf = sys.stdout
                else :
                        outf = file     # we assume it's a file object
                outf.write("%s" % str(self))
                outf.flush()
                if isopen :
                        outf.close()


Generated by  Doxygen 1.6.0   Back to index