def gengo(): global _gengo if not _gengo: PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__)) config = read_config(PROJECT_ROOT)['gengo-gettext'] _gengo = Gengo( public_key=str(config.gengo.public_key), private_key=str(config.gengo.private_key), sandbox=config.gengo.sandbox, ) return _gengo
def read_config(self): return read_config(self.deploy_dir)
import os from yoconfigurator.base import read_config app_dir = os.path.abspath(os.path.dirname(__file__)) conf = read_config(app_dir) aconf = conf.lintreview cconf = conf.common activate_this = (conf.deploy.root + '/lintreview/live/virtualenv/bin/activate_this.py') execfile(activate_this, dict(__file__=activate_this)) os.environ.setdefault('LINTREVIEW_SETTINGS', conf.deploy.root + '/lintreview/live/settings.py')
def setUpClass(cls): cls.config = read_config( os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) configure(sitewit=cls.config.common.sitewit) cls.service = SitewitService()
import os from yoconfigurator.base import read_config app_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) conf = read_config(app_dir) ## Graphite local_settings.py # Edit this file to customize the default Graphite webapp settings # # Additional customizations to Django settings can be added to this file as well ##################################### # General Configuration # ##################################### # Set your local timezone (Django's default is America/Chicago) # If your graphs appear to be offset by a couple hours then this probably # needs to be explicitly set to your local timezone. #TIME_ZONE = 'America/Los_Angeles' TIME_ZONE = "UTC" # Override this to provide documentation specific to your Graphite deployment #DOCUMENTATION_URL = "http://graphite.readthedocs.org/" # Logging #LOG_RENDERING_PERFORMANCE = True #LOG_CACHE_PERFORMANCE = True #LOG_METRIC_ACCESS = True # Enable full debug page display on exceptions (Internal Server Error pages)