# HG changeset patch # User k0s # Date 1256942995 14400 # Node ID 1f5e89b6457371d68b943d9d7930d6e337ce86b6 # Parent 7cdb3eecc04598a4a53db72756f81f7026b136de cruft removal diff -r 7cdb3eecc045 -r 1f5e89b64573 bitsyblog/bitsyblog.py --- 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, '
' % self.user_url(request, user) - print >> retval, '
' - print >> retval, self.privacy_settings() - print >> retval, '' - print >> retval, '
' - 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"""