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

def jaxml::CGI_document::__str__ (   self )
Returns the CGI output as a string.

Reimplemented from jaxml::XML_document.

Definition at line 980 of file jaxml.py.

                      :
        """Returns the CGI output as a string."""
        if self.__redirect__ :
            return "Location: %s\n\n" % self.__redirect__
        else :
            val = "Content-type: %s\n" % self.__content_type__
            if self.__status__ :
                val = val + "Status: %s %s\n" % (self.__status__, self.__statmes__)
            if self.__pragma__ :
                val = val + "Pragma: %s\n" % self.__pragma__
            if self.__expires__ :
                val = val + "Expires: %s\n" % self.__expires__
            if self.__content_disposition__ :
                val = val + "Content-Disposition: %s\n" % self.__content_disposition__
            return val + "\n" + HTML_document.__str__(self)


Generated by  Doxygen 1.6.0   Back to index