Mercurial > hg > bitsyblog
diff bitsyblog/factory.py @ 71:0c98d1c2c6df
fix syntax errors
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 08 Jul 2010 10:40:43 -0700 |
parents | f6a6a4b072e7 |
children | e6055bf127eb |
line wrap: on
line diff
--- a/bitsyblog/factory.py Wed Jul 07 16:18:19 2010 -0700 +++ b/bitsyblog/factory.py Thu Jul 08 10:40:43 2010 -0700 @@ -23,7 +23,7 @@ if key.startswith(key_str): key = key.split(key_str, 1)[-1] if key in config: - bitysblog_args[key] = value + bitsyblog_args[key] = value else: if '.' in key: section, key = key.split('.', 1) @@ -33,7 +33,7 @@ def factory(global_conf, **app_conf): """make bitsyauth app and wrap it in middleware""" bitsyblog_args, handler_args = get_args(app_conf) - app = BitsyBlog(**args) + app = BitsyBlog(bitsyblog_args, handler_args) secret = app_conf.get('secret', 'secret') return BitsyAuth(HTTPExceptionHandler(app), global_conf, @@ -47,7 +47,7 @@ """make single-user bitsyblog""" bitsyblog_args, handler_args = get_args(app_conf) user = app_conf['bitsyblog.user'] # ensure this exist - app = BitsierBlog(**args) + app = BitsierBlog(bitsyblog_args, handler_args) app.user = user secret = app_conf.get('secret', 'secret') auth = BitsyAuth(HTTPExceptionHandler(app),