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 Side-by-Side Diffs Ignore Whitespace Patch

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

     1      1   newsblur = local_import("newsblur")
     2      2   newsblur = newsblur.NewsBlur()
     3      3   
     4      4   threshold = 0
     5      5   thresholds = ["nt", "ps", "ng"]  # indices -1, 0, 1 for negative, neutral, and positive intelligence filters
     6      6   
     7         -print request.cookies
     8      7   if [request.application, request.controller, request.function] != [request.application, "default", "login"]:
     9      8       if "nb_cookie" not in request.cookies.keys():
    10      9           redirect(URL("default", "login"))
    11     10       else:
    12     11           newsblur.cookies["newsblur_sessionid"] = request.cookies["nb_cookie"].value

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

     1      1   {{left_sidebar_enabled=right_sidebar_enabled=False}}
     2      2   {{extend 'layout.html'}}
     3      3   
     4      4   <h1>{{= feed["feed_title"] }}</h1>
     5         -<a href="{{= URL("mark_read", args=[feed["id"]]) }}"> Mark feed as read</a>
            5  +<a href="{{= URL("mark_read", args=[feed["id"]]) }}">Mark feed as read</a>
     6      6   
     7      7   <section id="story-list">
     8      8       {{ for story in stories: }}
     9      9           <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>
    10     10           <p>{{= story["story_date"] }}</p>
    11     11       {{ pass }}
    12     12   </section>
    13     13   
    14     14   {{block left_sidebar}}New Left Sidebar Content{{end}}
    15     15   {{block right_sidebar}}New Right Sidebar Content{{end}}