コード例 #1
0
ファイル: http.py プロジェクト: sharky93/flumotion
def runHTTPStreamerChecks():
    """Runs all the http checks
    @returns: a deferred returning a guess of the public
              hostname for this worker
    """
    # FIXME: Move over more checks from httpstreamer.py
    log.debug('httpcheck', 'Checking...')
    result = Result()
    result.succeed(guess_public_hostname())
    log.debug('httpcheck', 'done, returning')
    return result
コード例 #2
0
ファイル: http.py プロジェクト: flyapen/UgFlu
def runHTTPStreamerChecks():
    """Runs all the http checks
    @returns: a deferred returning a guess of the public
              hostname for this worker
    """
    # FIXME: Move over more checks from httpstreamer.py
    log.debug('httpcheck', 'Checking...')
    result = Result()
    result.succeed(guess_public_hostname())
    log.debug('httpcheck', 'done, returning')
    return result
コード例 #3
0
ファイル: cortado.py プロジェクト: flyapen/UgFlu
def checkCortado():
    """Check for cortado applet.
    @returns: a result containing the filename to the jar or None if it
        cannot be found
    @rtype: L{flumotion.common.messages.Result}
    """
    log.debug('cortadocheck', 'Checking...')
    filename = getCortadoFilename()
    if not filename:
        msg = 'not found'
    else:
        msg = filename

    log.debug('cortadocheck', 'filename - %s' % (msg, ))
    result = Result()
    result.succeed(filename)
    log.debug('cortadocheck', 'done, returning')
    return result
コード例 #4
0
ファイル: cortado.py プロジェクト: sharky93/flumotion
def checkCortado():
    """Check for cortado applet.
    @returns: a result containing the filename to the jar or None if it
        cannot be found
    @rtype: L{flumotion.common.messages.Result}
    """
    log.debug('cortadocheck', 'Checking...')
    filename = getCortadoFilename()
    if not filename:
        msg = 'not found'
    else:
        msg = filename

    log.debug('cortadocheck', 'filename - %s' % (msg, ))
    result = Result()
    result.succeed(filename)
    log.debug('cortadocheck', 'done, returning')
    return result
コード例 #5
0
def checkFlashPlayer():
    """Check for flash player.
    @returns: a result containing the filename to the jar or None
              if it cannot be found
    @rtype: L{flumotion.common.messages.Result}
    """

    log.debug('flashplayercheck', 'Checking for ...')
    filename = getFlashFilename('video')
    if not filename:
        msg = 'not found'
    else:
        msg = filename

    log.debug('flashplayercheck', 'filename - %s' % (msg, ))
    result = Result()
    result.succeed(filename)
    log.debug('flashplayercheck', 'done, returning')
    return result