From: Moritz Kiefer Date: Fri, 1 Feb 2013 22:51:25 +0000 (+0100) Subject: rename Post.fetch_data() to Post.get_data() X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7eb90eb7cd9b1fddd5953483e9807e76c88a0e8f;p=diaspy.git rename Post.fetch_data() to Post.get_data() --- diff --git a/diaspy/models.py b/diaspy/models.py index 6e29f73..526d501 100644 --- a/diaspy/models.py +++ b/diaspy/models.py @@ -25,7 +25,7 @@ class Post: self.post_id = post_id - def fetch_data(self): + def get_data(self): r = self._client.session.get(self._client.pod + '/posts/' + self.post_id + @@ -63,7 +63,7 @@ class Post: data = {'authenticity_token': self._client.get_token()} - post_data = self.fetch_data() + post_data = self.get_data() r = self._client.session.delete(self._client.pod + '/posts/' + self.post_id + @@ -81,7 +81,7 @@ class Post: """ - post_data = self.fetch_data() + post_data = self.get_data() data = {'root_guid': post_data['guid'], 'authenticity_token': self._client.get_token()}