Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server/server.py dbconf error #5

Open
zhangyufei49 opened this issue Jan 29, 2015 · 0 comments
Open

server/server.py dbconf error #5

zhangyufei49 opened this issue Jan 29, 2015 · 0 comments

Comments

@zhangyufei49
Copy link

文件server/server.py的第90-93配置数据库的这个代码:
if dict.has_key("user") and dict.has_key("host") and dict.has_key("host"):
dbpool.initPool({"default":dbconfig})
else:
dbpool.initPool(dbconfig)
dict.has_key是无效的吧。你的意思是dbconfig.has_key吗?两次重复的判断host的键值,是不是后面应该是passwd或者port什么的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant