Artifact b47f0eada48338a96ceb4e6e975b6496537bac44:
- File applications/mobileblur/controllers/feeds.py — part of check-in [b74e6c434b] at 2011-11-20 03:12:48 on branch develop — Added a button to mark a feed as read (user: spiffy, size: 408) [annotate] [blame] [check-ins using] [more...]
# -*- coding: utf-8 -*- from pprint import pprint def view(): stories = newsblur.feed(request.args[0])["stories"] feeds = newsblur.feeds(flat=True)["feeds"] feed = [feed for feed in feeds.itervalues() if feed["id"]==int(request.args[0])][0] return dict(stories=stories, feed=feed) def mark_read(): newsblur.mark_feed_as_read(request.vars["feed"]) redirect(URL("default", "index"))