( self
                         , archive_name=None
                         , include_selenium=True
                         , RESPONSE=None
                         )
Export the test suite as a zip file.
Export the test suite as a zip file.
Export the test suite as a zip file .
def manage_getZipFile( self
                         , archive_name=None
                         , include_selenium=True
                         , RESPONSE=None
                         ):
        """ Export the test suite as a zip file.
        """
        if archive_name is None or archive_name.strip() == '':
            archive_name = self.getZipFileName()

        bits = self._getZipFile( include_selenium )

        if RESPONSE is None:
            return bits

        RESPONSE.setHeader('Content-type', 'application/zip')
        RESPONSE.setHeader('Content-length', str( len( bits ) ) )
        RESPONSE.setHeader('Content-disposition',
                            'inline;filename=%s' % archive_name )
        RESPONSE.write(bits)
def manage_getZipFile ( self , archive_name = None , include_selenium = True , RESPONSE = None ) : if archive_name is None or archive_name . strip ( ) == '' : archive_name = self . getZipFileName ( ) bits = self . _getZipFile ( include_selenium ) if RESPONSE is None : return bits RESPONSE . setHeader ( 'Content-type' , 'application/zip' ) RESPONSE . setHeader ( 'Content-length' , str ( len ( bits ) ) ) RESPONSE . setHeader ( 'Content-disposition' , 'inline;filename=%s' % archive_name ) RESPONSE . write ( bits )