Exemplo n.º 1
0
 def get(self):
 	db_host = config.get('database', 'db_host')
 	db_user = config.get('database', 'db_user')
 	db_password = config.get('database', 'db_password')
     db_name = config.get('database', 'db_name')
 	
     self.render("action/settings.html", db_host = db_host, db_user = db_user, db_password = db_password, db_name = db_name)
Exemplo n.º 2
0
def get_db_args():
    db_host = config.get('database', 'db_host')
    db_user = config.get('database', 'db_user')
    db_password = config.get('database', 'db_password')
    db_name = config.get('database', 'db_name')
    return dict(db_host = db_host, db_user = db_user, db_password = db_password, db_name = db_name)