# HG changeset patch # User k0s # Date 1257375660 18000 # Node ID b1a4f1f434cf8b80c9eb22e6a5a1581d4f6b6228 # Parent dc729d807cd51875af99afb9e7f70aa56f6f7010# Parent 11b1364085a9f5b15745f9a6cbffb7ca18093036 don't know what i did diff -r 11b1364085a9 -r b1a4f1f434cf bitsyblog/factory.py --- a/bitsyblog/factory.py Mon Nov 02 21:46:17 2009 -0500 +++ b/bitsyblog/factory.py Wed Nov 04 18:01:00 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