MobileBlur

0_helpers.py at [b33aaf3ac3]
Login

0_helpers.py at [b33aaf3ac3]

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


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