Mercurial > hg > bitsyblog
comparison bitsyblog/factory.py @ 73:e6055bf127eb
fix details necessary to make tweeting work...muahaha
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Thu, 08 Jul 2010 11:13:08 -0700 |
| parents | 0c98d1c2c6df |
| children | 51b49bc484ff |
comparison
equal
deleted
inserted
replaced
| 72:c9bab68d00ac | 73:e6055bf127eb |
|---|---|
| 2 from bitsyblog import BitsyBlog, BitsierBlog | 2 from bitsyblog import BitsyBlog, BitsierBlog |
| 3 from getpass import getpass | 3 from getpass import getpass |
| 4 from paste.httpexceptions import HTTPExceptionHandler | 4 from paste.httpexceptions import HTTPExceptionHandler |
| 5 | 5 |
| 6 # accepted configuration keys, e.g. 'bitsyblog.file_dir' | 6 # accepted configuration keys, e.g. 'bitsyblog.file_dir' |
| 7 config = set(['file_dir', | 7 config = set(BitsyBlog.defaults.keys()) |
| 8 'date_format', | 8 # config = set(['file_dir', |
| 9 'subject', | 9 # 'date_format', |
| 10 'n_links', | 10 # 'subject', |
| 11 'help_file', | 11 # 'n_links', |
| 12 'header', | 12 # 'help_file', |
| 13 'template_directories', | 13 # 'header', |
| 14 'feed_items', | 14 # 'template_directories', |
| 15 ]) | 15 # 'feed_items', |
| 16 # ]) | |
| 16 | 17 |
| 17 def get_args(app_conf): | 18 def get_args(app_conf): |
| 18 """return arguments for bitsyblog and its handlers""" | 19 """return arguments for bitsyblog and its handlers""" |
| 19 key_str = 'bitsyblog.' | 20 key_str = 'bitsyblog.' |
| 20 bitsyblog_args = {} | 21 bitsyblog_args = {} |
