dest[name] = options.get(section_name, name)
# define your defaults here
dest[name] = options.get(section_name, name)
# define your defaults here
def save_options(filename, options):
try:
ini_stream = open(filename, 'w')
options.write(ini_stream)
ini_stream.close()
def save_options(filename, options):
try:
ini_stream = open(filename, 'w')
options.write(ini_stream)
ini_stream.close()
LOGGER.debug("Error saving setting: %s" % (str(e)))
INI_FILE = options.read([os.path.expanduser("~/.htsworkflow.ini"),
LOGGER.debug("Error saving setting: %s" % (str(e)))
INI_FILE = options.read([os.path.expanduser("~/.htsworkflow.ini"),
options_to_list(options, NOTIFICATION_BCC, 'frontend', 'notification_bcc')
if not options.has_option('frontend', 'database'):
options_to_list(options, NOTIFICATION_BCC, 'frontend', 'notification_bcc')
if not options.has_option('frontend', 'database'):
"Please define [frontend] database=<Section>")
database_section = options.get('frontend', 'database')
if not options.has_section(database_section):
"Please define [frontend] database=<Section>")
database_section = options.get('frontend', 'database')
if not options.has_section(database_section):
"No database=<database_section_name> defined")
# 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
"No database=<database_section_name> defined")
# 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.