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
+++ b/bitsyblog/blog.py
@@ -143,15 +143,15 @@ class FileBlog(Blog):
             entries.extend([ (os.path.split(entry)[-1], permission) 
                              for entry in glob(os.path.join(self.location(user, permission), glob_expr)) ])
         entries.sort(key=lambda x: x[0], reverse=True)
         return [ self.get_entry(user, x[0], x[1]) for x in entries ]
 
     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':
             path = self.location(user, permission, datestamp)
             if os.path.exists(path):
                 os.remove(path)
--- a/bitsyblog/factory.py
+++ b/bitsyblog/factory.py
@@ -1,23 +1,24 @@
 from bitsyauth import BitsyAuth
 from bitsyblog import BitsyBlog, BitsierBlog
 from getpass import getpass 
 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"""
     key_str = 'bitsyblog.'
     bitsyblog_args = {}
     handler_args = {}
     for key, value in app_conf.items():
         if key.startswith(key_str):