Differences From Artifact [4edf6967cb]:
- File applications/mobileblur/controllers/default.py — part of check-in [759f07e810] at 2011-11-20 21:04:37 on branch develop — Added a catch to handle a failed Newsblur login (user: spiffy, size: 1017) [annotate] [blame] [check-ins using] [more...]
To Artifact [359e777bf1]:
- File applications/mobileblur/controllers/default.py — part of check-in [678f5259f2] at 2011-11-20 22:51:34 on branch develop — Added a logout button (user: spiffy, size: 1198) [annotate] [blame] [check-ins using]
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | + + + + + + + | response.cookies["nb_cookie"]["path"] = "/" print "cookie =", newsblur.cookies redirect(URL("index")) except Exception as ex: login_form.insert(-1, ex.message) return dict(login_form=login_form) def logout(): response.cookies["nb_cookie"] = "" response.cookies["nb_cookie"]["expires"] = -10 response.cookies["nb_cookie"]["path"] = "/" redirect(URL("index")) |