def data_sources_list(): return u.render( data_sources=[ds.to_dict() for ds in api.get_data_sources()])
def check_data_source_unique_name(name): if name in [ds.name for ds in api.get_data_sources()]: raise ex.NameAlreadyExistsException("Data source with name '%s' " "already exists" % name)
def data_sources_list(): return u.render( data_sources=[ds.to_dict() for ds in api.get_data_sources( **u.get_request_args().to_dict())])