rename Post.fetch_data() to Post.get_data()
authorMoritz Kiefer <moritz.kiefer@gmail.com>
Fri, 1 Feb 2013 22:51:25 +0000 (23:51 +0100)
committerMoritz Kiefer <moritz.kiefer@gmail.com>
Fri, 1 Feb 2013 22:51:25 +0000 (23:51 +0100)
diaspy/models.py

index 6e29f73061c8429a63e5268ef164020b7721e7a8..526d50113e965fbd4b634b7b66659515e779de4d 100644 (file)
@@ -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()}