Mercurial > hg > bitsyblog
diff bitsyblog/factory.py @ 59:0af1f4ae328d
fix a couple of basic things
author | egj@socialplanning.org |
---|---|
date | Mon, 04 Jan 2010 03:12:04 +0000 |
parents | b97d11e2cf41 |
children | f6a6a4b072e7 |
line wrap: on
line diff
--- a/bitsyblog/factory.py Sun Dec 27 01:25:38 2009 -0500 +++ b/bitsyblog/factory.py Mon Jan 04 03:12:04 2010 +0000 @@ -20,7 +20,12 @@ 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) + return BitsyAuth(HTTPExceptionHandler(app), + global_conf, + app.passwords, + app.newuser, + 'bitsyblog', + secret) def bitsierfactory(global_conf, **app_conf): @@ -32,7 +37,12 @@ app = BitsierBlog(**args) app.user = user secret = app_conf.get('secret', 'secret') - auth = BitsyAuth(HTTPExceptionHandler(app), global_conf, app.passwords, newuser=None, site='bitsyblog', secret=secret) + auth = BitsyAuth(HTTPExceptionHandler(app), + global_conf, + app.passwords, + newuser=None, + site=app_conf.get('site', 'bitsyblog'), + secret=secret) if not user in app.users: pw = getpass('Enter password for %s: ' % user) app.newuser(user, auth.hash(app.user, pw))