Artifact fbf9de8ba7458e9beca843be8afd0bb4bff06a64:
- File applications/mobileblur/controllers/stories.py — part of check-in [da2e9d5879] at 2011-11-20 23:29:30 on branch develop — Added a button to mark a story as read (user: spiffy, size: 421) [annotate] [blame] [check-ins using] [more...]
# -*- coding: utf-8 -*- from pprint import pprint def view(): stories = newsblur.feed(request.vars["feed_id"])["stories"] story = [story for story in stories if story["id"]==request.vars["story"]][0] return dict(story=story, feed_id=request.vars["feed_id"]) def mark_read(): results = newsblur.mark_story_as_read(request.vars["story_id"], request.vars["feed_id"]) redirect(URL("default", "index"))