changeset 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 c9bab68d00ac
children 2c219b788648 6b8ccf6ec819
files bitsyblog/blog.py bitsyblog/factory.py
diffstat 2 files changed, 11 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyblog/blog.py	Thu Jul 08 10:48:13 2010 -0700
+++ b/bitsyblog/blog.py	Thu Jul 08 11:13:08 2010 -0700
@@ -148,7 +148,7 @@
     def post(self, user, datestamp, body, privacy):
         blog = file(self.location(user, privacy, datestamp), 'w')
         print >> blog, body
-        return Blog.post(user, datestamp, body, privacy)
+        return Blog.post(self, user, datestamp, body, privacy)
 
     def delete(self, user, datestamp):
         for permission in 'public', 'secret', 'private':
--- a/bitsyblog/factory.py	Thu Jul 08 10:48:13 2010 -0700
+++ b/bitsyblog/factory.py	Thu Jul 08 11:13:08 2010 -0700
@@ -4,15 +4,16 @@
 from paste.httpexceptions import HTTPExceptionHandler
 
 # accepted configuration keys, e.g. 'bitsyblog.file_dir'
-config = set(['file_dir', 
-              'date_format', 
-              'subject', 
-              'n_links', 
-              'help_file', 
-              'header', 
-              'template_directories', 
-              'feed_items',
-              ])
+config = set(BitsyBlog.defaults.keys())
+# config = set(['file_dir', 
+#               'date_format', 
+#               'subject', 
+#               'n_links', 
+#               'help_file', 
+#               'header', 
+#               'template_directories', 
+#               'feed_items',
+#               ])
 
 def get_args(app_conf):
     """return arguments for bitsyblog and its handlers"""