Allow for pagination and other parameters for some helper methods in User model.
authorBas Westerbaan <bas@fsfe.org>
Thu, 17 Dec 2009 06:46:09 +0000 (00:46 -0600)
committerJoshua <jroesslein@gmail.com>
Thu, 17 Dec 2009 06:46:09 +0000 (00:46 -0600)
Merged from bwesterb/tweepy @5c7a7480de1ee99fae8c4a1eef65c127cb83e619

Signed-off-by: Joshua <jroesslein@gmail.com>
tweepy/models.py

index 83d70ff3df3cf8bd915a909e1d7176fc88e7e065..1b3d648c4698b82eaea88fd45355e1087fabe44b 100644 (file)
@@ -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):