Mercurial > hg > bitsyblog
comparison bitsyblog/factory.py @ 104:3198edbf7d8e
STUB: bitsyblog/factory.py
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 23 Feb 2014 17:16:09 -0800 |
parents | 62d4deec4314 |
children | 67e01fc5e360 |
comparison
equal
deleted
inserted
replaced
103:62d4deec4314 | 104:3198edbf7d8e |
---|---|
59 if not user in app.users: | 59 if not user in app.users: |
60 pw = getpass('Enter password for %s: ' % user) | 60 pw = getpass('Enter password for %s: ' % user) |
61 app.newuser(user, auth.hash(app.user, pw)) | 61 app.newuser(user, auth.hash(app.user, pw)) |
62 return auth | 62 return auth |
63 | 63 |
64 | |
64 def bitsierfactory(global_conf, **app_conf): | 65 def bitsierfactory(global_conf, **app_conf): |
65 """make single-user bitsyblog""" | 66 """make single-user bitsyblog""" |
66 bitsyblog_args, handler_args = get_args(app_conf, BitsierBlog) | 67 bitsyblog_args, handler_args = get_args(app_conf, BitsierBlog) |
67 app = basebitsierfactory(global_conf, bitsyblog_args, handler_args) | 68 app = basebitsierfactory(global_conf, bitsyblog_args, handler_args) |
68 return app | 69 return app |