Index: applications/mobileblur/controllers/feeds.py ================================================================== --- applications/mobileblur/controllers/feeds.py +++ applications/mobileblur/controllers/feeds.py @@ -5,5 +5,9 @@ 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")) Index: applications/mobileblur/modules/newsblur.py ================================================================== --- applications/mobileblur/modules/newsblur.py +++ applications/mobileblur/modules/newsblur.py @@ -191,11 +191,11 @@ results = requests.post(url, data=payload, cookies=cookies) return simplejson.loads(results.content) def mark_all_as_read(days=0): ''' - Mark all stories in a feed or list of feeds as read. + Mark all stories in *all* feeds read. ''' url = nb_url + 'reader/mark_all_as_read' payload = {'days':days} results = requests.post(url, data=payload, cookies=cookies) Index: applications/mobileblur/modules/python-newsblur/newsblur.py ================================================================== --- applications/mobileblur/modules/python-newsblur/newsblur.py +++ applications/mobileblur/modules/python-newsblur/newsblur.py @@ -191,11 +191,11 @@ results = requests.post(url, data=payload, cookies=cookies) return simplejson.loads(results.content) def mark_all_as_read(days=0): ''' - Mark all stories in a feed or list of feeds as read. + Mark all stories in *all* feeds read. ''' url = nb_url + 'reader/mark_all_as_read' payload = {'days':days} results = requests.post(url, data=payload, cookies=cookies) Index: applications/mobileblur/views/feeds/view.html ================================================================== --- applications/mobileblur/views/feeds/view.html +++ applications/mobileblur/views/feeds/view.html @@ -1,9 +1,10 @@ {{left_sidebar_enabled=right_sidebar_enabled=False}} {{extend 'layout.html'}} -

Title: {{= feed["feed_title"] }}

+

{{= feed["feed_title"] }}

+ Mark feed as read {{ for story in stories: }}

{{= story["story_title"] }}

{{ pass }}