MobileBlur

0_helpers.py at [a162dcef14]
Login

0_helpers.py at [a162dcef14]

File applications/mobileblur/models/0_helpers.py artifact d9e34b5918 part of check-in a162dcef14


newsblur = local_import("newsblur")

threshold = 0
thresholds = ["nt", "ps", "ng"]  # indices -1, 0, 1 for negative, neutral, and positive intelligence filters

def login(username="spiffytech"):
    user = db(db.users.username==username).select().first()
    if user["cookie"] is None:
        results = newsblur.login(user["username"], user["password"])