Permalink
Browse files

Add get_story method

  • Loading branch information...
Ben Olive
Ben Olive committed Feb 7, 2012
1 parent 691f7eb commit 9e7e48899694b3b12112d7b319d7f76526a6d030
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/pivotal.py
View
@@ -43,6 +43,10 @@ def _request(self, method, uri, **kwargs):
result.raise_for_status()
return etree.fromstring(result.content)
+ def get_story(self, story):
+ '''Fetch a specific story'''
+ return Story.from_xml(self._request("get", "stories/%d" % int(story)))
+
def update_story(self, story, **kwargs):
'''Update a story in this projects'''
if isinstance(story, Story):

0 comments on commit 9e7e488

Please sign in to comment.