From: Bas Westerbaan Date: Thu, 17 Dec 2009 06:46:09 +0000 (-0600) Subject: Allow for pagination and other parameters for some helper methods in User model. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=da99df08b6e778a09601c4cd92b5792b41ed1f1d;p=tweepy.git Allow for pagination and other parameters for some helper methods in User model. Merged from bwesterb/tweepy @5c7a7480de1ee99fae8c4a1eef65c127cb83e619 Signed-off-by: Joshua --- diff --git a/tweepy/models.py b/tweepy/models.py index 83d70ff..1b3d648 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -52,17 +52,17 @@ class User(Model): self._api.destroy_friendship(user_id=self.id) self.following = False - def lists_memberships(self): - return self._api.lists_memberships(user=self.screen_name) + def lists_memberships(self, *args, **kargs): + return self._api.lists_memberships(user=self.screen_name, *args, **kargs) - def lists_subscriptions(self): - return self._api.lists_subscriptions(user=self.screen_name) + def lists_subscriptions(self, *args, **kargs): + return self._api.lists_subscriptions(user=self.screen_name, *args, **kargs) - def lists(self): - return self._api.lists(user=self.screen_name) + def lists(self, *args, **kargs): + return self._api.lists(user=self.screen_name, *args, **kargs) - def followers_ids(self): - return self._api.followers_ids(user_id=self.id) + def followers_ids(self, *args, **kargs): + return self._api.followers_ids(user_id=self.id, *args, **kargs) class DirectMessage(Model):