Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/s/a/sahara-2014.1/sahara/service/edp/binary_retrievers/internal_swift.py   sahara(Download)
    # TODO(mattf): remove support for OLD_SWIFT_INTERNAL_PREFIX
    if not (job_binary.url.startswith(su.SWIFT_INTERNAL_PREFIX) or
            job_binary.url.startswith(su.OLD_SWIFT_INTERNAL_PREFIX)):
        # This should have been guaranteed already,
        # but we'll check just in case.

src/s/a/sahara-HEAD/sahara/service/edp/binary_retrievers/internal_swift.py   sahara(Download)
    # TODO(mattf): remove support for OLD_SWIFT_INTERNAL_PREFIX
    if not (job_binary.url.startswith(su.SWIFT_INTERNAL_PREFIX) or
            job_binary.url.startswith(su.OLD_SWIFT_INTERNAL_PREFIX)):
        # This should have been guaranteed already,
        # but we'll check just in case.

src/s/a/sahara-2014.1/sahara/service/validations/edp/job_binary.py   sahara(Download)
    # TODO(mattf): remove support for OLD_SWIFT_INTERNAL_PREFIX
    if job_binary_location_type.startswith(su.SWIFT_INTERNAL_PREFIX) or (
            job_binary_location_type.startswith(su.OLD_SWIFT_INTERNAL_PREFIX)):
        if not extra.get("user") or not extra.get("password"):
            raise e.BadJobBinaryException()

src/s/a/sahara-2014.1/sahara/service/edp/binary_retrievers/dispatch.py   sahara(Download)
    # TODO(mattf): remove support for OLD_SWIFT_INTERNAL_PREFIX
    if url.startswith(su.SWIFT_INTERNAL_PREFIX) or (
            url.startswith(su.OLD_SWIFT_INTERNAL_PREFIX)):
        res = i_swift.get_raw_data(context.ctx(), job_binary)
 

src/s/a/sahara-HEAD/sahara/service/validations/edp/job_binary.py   sahara(Download)
    # TODO(mattf): remove support for OLD_SWIFT_INTERNAL_PREFIX
    if job_binary_location_type.startswith(su.SWIFT_INTERNAL_PREFIX) or (
            job_binary_location_type.startswith(su.OLD_SWIFT_INTERNAL_PREFIX)):
        if not extra.get("user") or not extra.get("password"):
            raise e.BadJobBinaryException()

src/s/a/sahara-HEAD/sahara/service/edp/binary_retrievers/dispatch.py   sahara(Download)
    # TODO(mattf): remove support for OLD_SWIFT_INTERNAL_PREFIX
    if url.startswith(su.SWIFT_INTERNAL_PREFIX) or (
            url.startswith(su.OLD_SWIFT_INTERNAL_PREFIX)):
        res = i_swift.get_raw_data(context.ctx(), job_binary)
 

src/s/a/sahara-2014.1/sahara/utils/api_validator.py   sahara(Download)
    # TODO(mattf): remove support for OLD_SWIFT_INTERNAL_PREFIX
    if entry.startswith(su.SWIFT_INTERNAL_PREFIX) or (
            entry.startswith(su.OLD_SWIFT_INTERNAL_PREFIX)):
        #TODO(nprivalova):add hostname validation
        return True

src/s/a/sahara-HEAD/sahara/utils/api_validator.py   sahara(Download)
    # TODO(mattf): remove support for OLD_SWIFT_INTERNAL_PREFIX
    if entry.startswith(su.SWIFT_INTERNAL_PREFIX) or (
            entry.startswith(su.OLD_SWIFT_INTERNAL_PREFIX)):
        #TODO(nprivalova):add hostname validation
        return True