Artifact 353169fb7a7018d2c8fc90289b592bed50fce0d7:
- File applications/mobileblur/controllers/feeds.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: 437) [annotate] [blame] [check-ins using]
# -*- 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(): if len(request.args) > 0: newsblur.mark_feed_as_read(request.args[0]) redirect(URL("default", "index"))