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)
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)