comparison bitsyblog/bitsyblog.py @ 25:62c961bb91e6

* allow changing of privacy on blog entries * bind blog variables in genshi
author k0s <k0scist@gmail.com>
date Sat, 31 Oct 2009 00:30:47 -0400
parents bf314b9a261a
children e37d117a9deb
comparison
equal deleted inserted replaced
24:7505329b3134 25:62c961bb91e6
258 258
259 # find user + path 259 # find user + path
260 user, path = self.userpath(request) 260 user, path = self.userpath(request)
261 261
262 # check to make sure the user is authenticated 262 # check to make sure the user is authenticated
263 # and is the resource owner
263 check = self.check_user(user, request) 264 check = self.check_user(user, request)
264 if check is not None: 265 if check is not None:
265 return check 266 return check
266 267
267 if len(path): 268 if len(path):
269
268 if path == [ 'preferences' ]: 270 if path == [ 'preferences' ]:
269 271
270 # make the data look like we want 272 # make the data look like we want
271 settings = {} 273 settings = {}
272 settings['Date format'] = request.POST.get('Date format') 274 settings['Date format'] = request.POST.get('Date format')