示例#1
0
文件: index.py 项目: 9wfox/client
 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)
示例#2
0
文件: index.py 项目: 9wfox/client
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)