# HG changeset patch # User k0s # Date 1256963447 14400 # Node ID 62c961bb91e690861c64a0499ab0babfe96ac8bb # Parent 7505329b31341cd69c202349378b02857312d773 * allow changing of privacy on blog entries * bind blog variables in genshi diff -r 7505329b3134 -r 62c961bb91e6 bitsyblog/bitsyblog.py --- a/bitsyblog/bitsyblog.py Sat Oct 31 00:22:26 2009 -0400 +++ b/bitsyblog/bitsyblog.py Sat Oct 31 00:30:47 2009 -0400 @@ -260,11 +260,13 @@ user, path = self.userpath(request) # check to make sure the user is authenticated + # and is the resource owner check = self.check_user(user, request) if check is not None: return check if len(path): + if path == [ 'preferences' ]: # make the data look like we want diff -r 7505329b3134 -r 62c961bb91e6 bitsyblog/templates/blog.html --- a/bitsyblog/templates/blog.html Sat Oct 31 00:22:26 2009 -0400 +++ b/bitsyblog/templates/blog.html Sat Oct 31 00:30:47 2009 -0400 @@ -36,11 +36,13 @@
+ py:with="datestamp=entry.datestamp(); url=user_url(request, request.user.name, datestamp)" + id="${entry.datestamp()}" + class="blog-entry">