示例#1
0
文件: cli.py 项目: nictuku/nwu
 def __init__(self, config=None, initialize=True):
     # FIXME: remove this 'initialize' check
     # it's used the tests, but I could simply override the class instead
     if initialize:
         if not config:
             config = Config()
         # FIXME: use nwu.server.app instead when it's available
         db_bind(config.get("database", "connection_string",
             "sqlite:////var/lib/nwu/nwu.db"))