MobileBlur

Check-in [e23a2d0023]
Login
Overview
Comment:[2bd69fdb5b4c5fc04d40ea402cc18510b073c4e3] Mobileblur is now the default web2py app
Timelines: family | ancestors | descendants | both | develop
Files: files | file ages | folders
SHA1: e23a2d002358f1e13b534ceffe8e598fd8bbb251
User & Date: spiffy on 2011-11-21 03:08:15
Other Links: branch diff | manifest | tags
References
2011-11-21
03:08 Fixed ticket [2bd69fdb5b]: Make MB the default web2py app plus 3 other changes artifact: 056084a2e8 user: spiffytech
Context
2011-11-22
23:16
[9678271609e046a71f06dd091c7ae666716cc670] Added a Google Analytics tracking code check-in: 07a2f861bb user: spiffy tags: develop
2011-11-21
03:15
Create new branch named "feature/pretty" check-in: e8b2e22e32 user: spiffy tags: feature/pretty
03:08
[2bd69fdb5b4c5fc04d40ea402cc18510b073c4e3] Mobileblur is now the default web2py app check-in: e23a2d0023 user: spiffy tags: develop
2011-11-20
23:52
[12e10e324e61e687d024bb1aac1a1c031ef48dd3] Added each story's timestamp below it in the story list check-in: 4e2808f7d1 user: spiffy tags: develop
Changes

Modified applications/mobileblur/models/0_helpers.py from [c67dbf684a] to [8ed26c507d].

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






<





1
2
3
4
5
6

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

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


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

Modified applications/mobileblur/views/feeds/view.html from [c504c9ef12] to [f19fa72882].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{left_sidebar_enabled=right_sidebar_enabled=False}}
{{extend 'layout.html'}}

<h1>{{= feed["feed_title"] }}</h1>
<a href="{{= URL("mark_read", args=[feed["id"]]) }}"> Mark feed as read</a>

<section id="story-list">
    {{ for story in stories: }}
        <a href="{{= URL(c="stories", f="view", vars=dict(story=story["id"], feed_id=feed["id"])) }}" class="{{= "unread" if story["read_status"] == 1 else "read" }}"><h2>{{= story["story_title"] }}</h2></a>
        <p>{{= story["story_date"] }}</p>
    {{ pass }}
</section>

{{block left_sidebar}}New Left Sidebar Content{{end}}
{{block right_sidebar}}New Right Sidebar Content{{end}}




|










1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{left_sidebar_enabled=right_sidebar_enabled=False}}
{{extend 'layout.html'}}

<h1>{{= feed["feed_title"] }}</h1>
<a href="{{= URL("mark_read", args=[feed["id"]]) }}">Mark feed as read</a>

<section id="story-list">
    {{ for story in stories: }}
        <a href="{{= URL(c="stories", f="view", vars=dict(story=story["id"], feed_id=feed["id"])) }}" class="{{= "unread" if story["read_status"] == 1 else "read" }}"><h2>{{= story["story_title"] }}</h2></a>
        <p>{{= story["story_date"] }}</p>
    {{ pass }}
</section>

{{block left_sidebar}}New Left Sidebar Content{{end}}
{{block right_sidebar}}New Right Sidebar Content{{end}}