From 6cd8815b756a094842ac0b89961b9c0bc2bb2a4f Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Sun, 20 Sep 2009 19:34:08 -0500 Subject: [PATCH] Update statuses parser to handle retweet details. --- CHANGES | 1 + tweepy/parsers.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index d2a273a..eb3d5ef 100644 --- a/CHANGES +++ b/CHANGES @@ -9,6 +9,7 @@ during upgrade will be listed here. + Added Retweet API methods + Added Retweet Streaming method + New model: Retweet + + Updated statuses parser to handle retweet_details + OAuthHandler + Added set_request_token() method + Added support for "sign in with twitter". diff --git a/tweepy/parsers.py b/tweepy/parsers.py index 9d15a65..f5ad2da 100644 --- a/tweepy/parsers.py +++ b/tweepy/parsers.py @@ -105,6 +105,8 @@ def _parse_status(obj, api): elif k == 'source': setattr(status, k, _parse_html_value(v)) setattr(status, 'source_url', _parse_a_href(v)) + elif k == 'retweet_details': + setattr(status, k, _parse_retweet(v, api)) else: setattr(status, k, v) return status -- 2.25.1