MobileBlur

0_helpers.py at [cbc0649388]
Login

0_helpers.py at [cbc0649388]

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


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"])