cubicweb/devtools/__init__.py
changeset 11264 1a3a0ac2b41d
parent 11259 84e2a1121f4b
child 11265 ce04184fbf90
equal deleted inserted replaced
11259:84e2a1121f4b 11264:1a3a0ac2b41d
    95 DEFAULT_PSQL_SOURCES = DEFAULT_SOURCES.copy()
    95 DEFAULT_PSQL_SOURCES = DEFAULT_SOURCES.copy()
    96 DEFAULT_PSQL_SOURCES['system'] = DEFAULT_SOURCES['system'].copy()
    96 DEFAULT_PSQL_SOURCES['system'] = DEFAULT_SOURCES['system'].copy()
    97 DEFAULT_PSQL_SOURCES['system']['db-driver'] = 'postgres'
    97 DEFAULT_PSQL_SOURCES['system']['db-driver'] = 'postgres'
    98 DEFAULT_PSQL_SOURCES['system']['db-user'] = text_type(getpass.getuser())
    98 DEFAULT_PSQL_SOURCES['system']['db-user'] = text_type(getpass.getuser())
    99 DEFAULT_PSQL_SOURCES['system']['db-password'] = None
    99 DEFAULT_PSQL_SOURCES['system']['db-password'] = None
       
   100 # insert a dumb value as db-host to avoid unexpected connection to local server
       
   101 DEFAULT_PSQL_SOURCES['system']['db-host'] = 'REPLACEME'
       
   102 
   100 
   103 
   101 def turn_repo_off(repo):
   104 def turn_repo_off(repo):
   102     """ Idea: this is less costly than a full re-creation of the repo object.
   105     """ Idea: this is less costly than a full re-creation of the repo object.
   103     off:
   106     off:
   104     * session are closed,
   107     * session are closed,