# HG changeset patch # User k0s # Date 1257127134 18000 # Node ID dc729d807cd51875af99afb9e7f70aa56f6f7010 # Parent 4b01f5bc84e69529d8e2bc4691a70a149fecc30d whitespace cleanup diff -r 4b01f5bc84e6 -r dc729d807cd5 bitsyblog/factory.py --- 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