Mercurial > hg > bitsyblog
changeset 40:dc729d807cd5
whitespace cleanup
author | k0s <k0scist@gmail.com> |
---|---|
date | Sun, 01 Nov 2009 20:58:54 -0500 |
parents | 4b01f5bc84e6 |
children | b1a4f1f434cf |
files | bitsyblog/factory.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bitsyblog/factory.py Sun Nov 01 18:49:04 2009 -0500 +++ b/bitsyblog/factory.py Sun Nov 01 20:58:54 2009 -0500 @@ -10,18 +10,17 @@ key_str = 'bitsyblog.%s' args = dict([ (key, app_conf[ key_str % key]) for key in config if app_conf.has_key(key_str % key) ]) - app = BitsyBlog(**args) secret = app_conf.get('secret', 'secret') return BitsyAuth(HTTPExceptionHandler(app), global_conf, app.passwords, app.newuser, 'bitsyblog', secret) + def bitsierfactory(global_conf, **app_conf): """make single-user bitsyblog""" config = [ 'file_dir', 'date_format', 'subject', 'n_links', 'help_file' ] key_str = 'bitsyblog.%s' args = dict([ (key, app_conf[ key_str % key]) for key in config if app_conf.has_key(key_str % key) ]) - user = app_conf['bitsyblog.user'] app = BitsierBlog(**args) app.user = user