Commits

mickael9 committed e877e6d

Work-around another missing getturl in the API. Fixes #2

  • Participants
  • Parent commits 41a1552

Comments (0)

Files changed (2)

-fd2a81c8360177ddb733c7d8af5468a878998882 v0.1
 335df2488147518f586d656565ed13ed4d4e90ab v0.1
         self.created = datetime.datetime.fromtimestamp(result['created'])
         self.url = result.get('getturl')
 
+        # FIXME: work around API omission
+        if not self.url:
+            self.url = self.share.url + '/v/%s' % self.id
+
         if 'upload' in result:
             self.put_url = result['upload']['puturl']
         else: