during upgrade will be listed here.
1.0 -> 1.0.1
-------------
-Status.user --> Status.author
+============
++ Status.user --> Status.author
++ User:
+ + follow()
+ + unfollow()
++ Fixes
+ + User.following is now set to False instead of None
+ when user is not followed.
+ rate limit governor
+ prepare for social graph changes mentioned on mailinglist
+ finish search api
++ autodetect authenticated user's ID
def followers(self, **kargs):
return self._api.followers(id=self.id, **kargs)
+ def follow(self):
+ self._api.create_friendship(user_id=self.id)
+ self.following = True
+ def unfollow(self):
+ self._api.destroy_friendship(user_id=self.id)
+ self.following = False
+
class DirectMessage(Model):
def destroy(self):
setattr(user, k, _parse_datetime(v))
elif k == 'status':
setattr(user, k, _parse_status(v, api))
+ elif k == 'following':
+ # twitter sets this to null if it is false
+ if v is True:
+ setattr(user, k, True)
+ else:
+ setattr(user, k, False)
else:
setattr(user, k, v)
return user