MobileBlur

0_helpers.py at [b74e6c434b]
Login

0_helpers.py at [b74e6c434b]

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


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