changeset 22:1f5e89b64573

cruft removal
author k0s <k0scist@gmail.com>
date Fri, 30 Oct 2009 18:49:55 -0400
parents 7cdb3eecc045
children bf314b9a261a
files bitsyblog/bitsyblog.py
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyblog/bitsyblog.py	Fri Oct 30 18:49:10 2009 -0400
+++ b/bitsyblog/bitsyblog.py	Fri Oct 30 18:49:55 2009 -0400
@@ -795,14 +795,6 @@
         template = self.loader.load('post.html')
         return template.generate(**data).render()
 
-        retval = StringIO()
-        print >> retval, '<form action="/%s" method="post">' % self.user_url(request, user)
-        print >> retval, '<textarea cols="80" rows="25" name="form-post"></textarea><br/>'
-        print >> retval, self.privacy_settings()
-        print >> retval, '<input type="submit" name="submit" value="Post" />'
-        print >> retval, '</form>'
-        return self.render(request, retval.getvalue())
-
     def preferences_form(self, request, user):
         prefs = request.user.settings
         form = Form()
@@ -853,13 +845,6 @@
             body = '%s\n%s' % ( markup.p(markup.strong(message)), body )
         return self.render(request, body, title='preferences')
     
-    def privacy_settings(self, default='public'):
-        """HTML snippet for privacy settings"""
-        settings = (('public', 'viewable to everyone'),
-                    ('secret', 'viewable only to your friends'),
-                    ('private', 'viewable only to you'))
-        form = Form()
-        return form.radiobuttons('privacy', settings, checked=default, joiner=' ')
 
 class BitsierBlog(BitsyBlog):
     """single user version of bitsyblog"""