MobileBlur

Check-in [e23a2d0023]
Login
Overview
SHA1:e23a2d002358f1e13b534ceffe8e598fd8bbb251
Date: 2011-11-21 03:08:15
User: spiffy
Comment:[2bd69fdb5b4c5fc04d40ea402cc18510b073c4e3] Mobileblur is now the default web2py app
Timelines: family | ancestors | descendants | both | develop
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2011-11-22
23:16
[07a2f861bb] [9678271609e046a71f06dd091c7ae666716cc670] Added a Google Analytics tracking code (user: spiffy, tags: develop)
2011-11-21
03:15
[e8b2e22e32] Create new branch named "feature/pretty" (user: spiffy, tags: feature/pretty)
03:08
[e23a2d0023] [2bd69fdb5b4c5fc04d40ea402cc18510b073c4e3] Mobileblur is now the default web2py app (user: spiffy, tags: develop)
2011-11-20
23:52
[4e2808f7d1] [12e10e324e61e687d024bb1aac1a1c031ef48dd3] Added each story's timestamp below it in the story list (user: spiffy, tags: develop)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

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}}