Commit 797b0bf5 by adamtorok

download method added to image manager

parent 79588613
...@@ -5,10 +5,18 @@ class ImageManager: ...@@ -5,10 +5,18 @@ class ImageManager:
def upload_file(self, name, path, format): def upload_file(self, name, path, format):
raise NotImplementedError raise NotImplementedError
def delete(self, id): def get(self, id):
raise NotImplementedError raise NotImplementedError
def get(self, id): def download(self, id):
raise NotImplementedError
def download_to_file(self, id, path):
f = open(path, 'wb')
f.write(self.download(id))
f.close()
def delete(self, id):
raise NotImplementedError raise NotImplementedError
def list(self): def list(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment