Package expedient :: Package clearinghouse :: Package commands :: Module utils
[hide private]
[frames] | no frames]

Module utils

source code

Contains management utilities Created on Aug 25, 2010


Author: jnaous

Functions [hide private]
 
bootstrap_local_settings(conf_dir='/home/jnaous/csl/projects/e-geni/doc-expedient/src/python')
Create a localsettings module in conf_dir.
source code
 
create_user(root_username, root_password, username, password, db_name, host)
Create a database user and give her privileges to create/delete databases <db_name> and test_<db_name>.
source code
 
bootstrap_expedient_mysql() source code
Variables [hide private]
  __package__ = 'expedient.clearinghouse.commands'
Function Details [hide private]

bootstrap_local_settings(conf_dir='/home/jnaous/csl/projects/e-geni/doc-expedient/src/python')

source code 

Create a localsettings module in conf_dir.

Parameters:
  • conf_dir - location of the localsettings.py file. Defaults to CONF_DIR.