Artifact c67dbf684a52b613c5c8ccaf2e097a5df7fc0703:
- File applications/mobileblur/models/0_helpers.py — part of check-in [8cd4f18daf] at 2011-11-20 20:49:00 on branch develop — Added support for multiple users to use the site simultaneously (user: spiffy, size: 509) [annotate] [blame] [check-ins using] [more...]
newsblur = local_import("newsblur") newsblur = newsblur.NewsBlur() threshold = 0 thresholds = ["nt", "ps", "ng"] # indices -1, 0, 1 for negative, neutral, and positive intelligence filters print request.cookies if [request.application, request.controller, request.function] != [request.application, "default", "login"]: if "nb_cookie" not in request.cookies.keys(): redirect(URL("default", "login")) else: newsblur.cookies["newsblur_sessionid"] = request.cookies["nb_cookie"].value