Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
interface-openstack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
797b0bf5
authored
Apr 09, 2019
by
adamtorok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
download method added to image manager
parent
79588613
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
interface/image/ImageManager.py
+10
-2
No files found.
interface/image/ImageManager.py
View file @
797b0bf5
...
...
@@ -5,10 +5,18 @@ class ImageManager:
def
upload_file
(
self
,
name
,
path
,
format
):
raise
NotImplementedError
def
delete
(
self
,
id
):
def
get
(
self
,
id
):
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
def
list
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment