Artifact 8ed26c507d7ad2c0fec0a02b4ffa1c904073dca1:
- File applications/mobileblur/models/0_helpers.py — part of check-in [e23a2d0023] at 2011-11-21 03:08:15 on branch develop — [2bd69fdb5b4c5fc04d40ea402cc18510b073c4e3] Mobileblur is now the default web2py app (user: spiffy, size: 487) [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 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