Differences From Artifact [8c37485973]:
- File applications/mobileblur/modules/newsblur.py — part of check-in [cbc0649388] at 2011-11-20 03:03:33 on branch develop — Moved newsblur library from urllib to Requests. Moved username storage to the DB. Store cookie in the DB. Centralize a login function that checks the DB for a user's cookie on each page load and logs the user in if there's no cookie. (user: spiffy, size: 10452) [annotate] [blame] [check-ins using]
- File applications/mobileblur/modules/python-newsblur/newsblur.py — part of check-in [cbc0649388] at 2011-11-20 03:03:33 on branch develop — Moved newsblur library from urllib to Requests. Moved username storage to the DB. Store cookie in the DB. Centralize a login function that checks the DB for a user's cookie on each page load and logs the user in if there's no cookie. (user: spiffy, size: 10452) [annotate] [blame] [check-ins using]
To Artifact [d55de7de31]:
- File applications/mobileblur/modules/newsblur.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: 10437) [annotate] [blame] [check-ins using]
- File applications/mobileblur/modules/python-newsblur/newsblur.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: 10437) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
189 190 191 192 193 194 195 | url = nb_url + 'reader/mark_story_as_starred' payload = {'story_id':story_id,'feed_id':feed_id} results = requests.post(url, data=payload, cookies=cookies) return simplejson.loads(results.content) def mark_all_as_read(days=0): ''' | | | 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | url = nb_url + 'reader/mark_story_as_starred' payload = {'story_id':story_id,'feed_id':feed_id} results = requests.post(url, data=payload, cookies=cookies) return simplejson.loads(results.content) def mark_all_as_read(days=0): ''' 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) return simplejson.loads(results.content) |
︙ | ︙ |