Mercurial > hg > bitsyblog
changeset 41:b1a4f1f434cf
don't know what i did
author | k0s <k0scist@gmail.com> |
---|---|
date | Wed, 04 Nov 2009 18:01:00 -0500 |
parents | dc729d807cd5 (diff) 11b1364085a9 (current diff) |
children | ffe95e34066f |
files | bitsyblog/bitsyauth.py bitsyblog/factory.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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