Did I find the right examples for you? yes no

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

src/d/j/djangy-HEAD/install/install.py   djangy(Download)
            config.PRODUCTION = True
            config.DEVPAYMENTS_API_KEY = config.DEVPAYMENTS_PRODUCTION
if not config.ACTION or not config.MASTER_MANAGER_HOST or not config.DEFAULT_DATABASE_HOST or not config.DEFAULT_PROXYCACHE_HOST:
    print 'Usage: sudo install.py { install | upgrade } [master] [worker] [proxycache] --master-manager-host=<mh> --default-database-host=<dbh> --default-proxycache-host=<pch> [--workerhosts=<wh1>,<wh2>,...] [--production] [--to-south]'
    sys.exit(1)
    contents = (('DEFAULT_DATABASE_HOST   = \'%s\'\n' % config.DEFAULT_DATABASE_HOST) +
                ('DEFAULT_PROXYCACHE_HOST = \'%s\'\n' % config.DEFAULT_PROXYCACHE_HOST) +
                ('MASTER_MANAGER_HOST     = \'%s\'\n' % config.MASTER_MANAGER_HOST) + 
                ('DEVPAYMENTS_API_KEY     = \'%s\'\n' % config.DEVPAYMENTS_API_KEY)))
if config.MASTER_NODE:
    'worker'                 : 'worker'     if config.WORKER_NODE     else '',
    'proxycache'             : 'proxycache' if config.PROXYCACHE_NODE else '',
    'master-manager-host'    : config.MASTER_MANAGER_HOST,
    'default-database-host'  : config.DEFAULT_DATABASE_HOST,
    'default-proxycache-host': config.DEFAULT_PROXYCACHE_HOST,