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

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

src/s/a/sahara-2014.1/sahara/service/validations/edp/base.py   sahara(Download)
def check_data_source_exists(data_source_id):
    if not api.get_data_source(data_source_id):
        raise ex.InvalidException("DataSource with id '%s'"
                                  " doesn't exist" % data_source_id)
 
def check_data_sources_are_different(data_source_1_id, data_source_2_id):
    ds1 = api.get_data_source(data_source_1_id)
    ds2 = api.get_data_source(data_source_2_id)
 
    if ds1.type == ds2.type and ds1.url == ds2.url:

src/s/a/sahara-HEAD/sahara/service/validations/edp/base.py   sahara(Download)
def check_data_source_exists(data_source_id):
    if not api.get_data_source(data_source_id):
        raise ex.InvalidException("DataSource with id '%s'"
                                  " doesn't exist" % data_source_id)
 
def check_data_sources_are_different(data_source_1_id, data_source_2_id):
    ds1 = api.get_data_source(data_source_1_id)
    ds2 = api.get_data_source(data_source_2_id)
 
    if ds1.type == ds2.type and ds1.url == ds2.url: