MobileBlur

Diff
Login

Diff

Differences From Artifact [6363f858c9]:

To Artifact [c67dbf684a]:


1

2
3
4
5
6
7
8
9

10
11
12
newsblur = local_import("newsblur")


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

#import ipdb
#ipdb.set_trace()
if "nb_cookie" not in request.cookies.keys():
    if [request.application, request.controller, request.function] != [request.application, "default", "login"]:

        redirect(URL("default", "login"))
#else:
#    newsblur.cookies = request.cookies["nb_cookie"]

>




<
<
|
|
>

|
|
1
2
3
4
5
6


7
8
9
10
11
12
newsblur = local_import("newsblur")
newsblur = newsblur.NewsBlur()

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



print request.cookies
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