Artifact a3b08e626ae38e506a766b852178cf577a831167:
- File applications/mobileblur/models/0_helpers.py — part of check-in [5a37a6a313] at 2011-11-20 05:13:42 on branch feature/web2py_auth — Removed NewsBlur login tracking from the database and instead just give the client a copy of their NewsBlur cookie (user: spiffy, size: 517) [annotate] [blame] [check-ins using]
newsblur = local_import("newsblur") threshold = 0 thresholds = ["nt", "ps", "ng"] # indices -1, 0, 1 for negative, neutral, and positive intelligence filters #import ipdb #ipdb.set_trace() print request.env.path_info if "nb_cookie" not in request.cookies.keys(): if [request.application, request.controller, request.function] != [request.application, "default", "login"]: redirect(URL("default", "login", vars=dict(redirect=request.folder))) #else: # newsblur.cookies = request.cookies["nb_cookie"]