@@ -0,0 +1,1697 @@
+# -*- coding: utf-8 -*-%0A%0A# This work was created by participants in the DataONE project, and is%0A# jointly copyrighted by participating institutions in DataONE. For%0A# more information on DataONE, see our web site at http://dataone.org.%0A#%0A#   Copyright 2009-2016 DataONE%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22);%0A# you may not use this file except in compliance with the License.%0A# You may obtain a copy of the License at%0A#%0A#   http://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS,%0A# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A# See the License for the specific language governing permissions and%0A# limitations under the License.%0A%22%22%22Utilities for handling DataONE environments%0A%22%22%22%0A%0Aimport d1_common.const%0A%0AD1_ENV_DICT = %7B%0A  'prod': %7B%0A    'name': 'Production',%0A    'base_url': d1_common.const.URL_DATAONE_ROOT,%0A    'host': 'cn.dataone.org',%0A    'solr_base': '/cn/v1/query/solr/',%0A  %7D,%0A  'stage': %7B%0A    'name': 'Stage',%0A    'base_url': 'https://cn-stage.test.dataone.org/cn',%0A    'host': 'cn-stage.test.dataone.org',%0A    'solr_base': '/cn/v1/query/solr/',%0A  %7D,%0A  'sandbox': %7B%0A    'name': 'Sandbox',%0A    'base_url': 'https://cn-sandbox.test.dataone.org/cn',%0A    'host': 'cn-sandbox.test.dataone.org',%0A    'solr_base': '/cn/v1/query/solr/',%0A  %7D,%0A  'dev': %7B%0A    'name': 'Development',%0A    'base_url': 'https://cn-dev.test.dataone.org/cn',%0A    'host': 'cn-dev.test.dataone.org',%0A    'solr_base': '/cn/v1/query/solr/',%0A  %7D,%0A%7D%0A%0Adef get_d1env_keys():%0A  return D1_ENV_DICT.keys()%0A%0A%0Adef get_d1env(k):%0A  return D1_ENV_DICT%5Bk%5D%0A

Add utility module for working with D1 environments