Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
storagedriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a1decbb0
authored
Jun 25, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ver: return dict with multiple parameters
parent
0282f543
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
storagedriver.py
+3
-2
No files found.
storagedriver.py
View file @
a1decbb0
...
...
@@ -36,7 +36,8 @@ class download(AbortableTask):
parent_id
=
kwargs
.
get
(
"parent_id"
,
None
)
disk
=
Disk
.
deserialize
(
disk_desc
)
disk
.
download
(
self
,
url
,
parent_id
)
return
disk
.
size
return
{
'size'
:
disk
.
size
,
'type'
:
disk
.
format
}
@celery.task
()
...
...
@@ -89,7 +90,7 @@ def move_to_trash(datastore, disk_name):
disk_path
=
path
.
join
(
datastore
,
disk_name
)
if
not
path
.
isdir
(
trash_path
):
mkdir
(
trash_path
)
#TODO: trash dir configurable?
#
TODO: trash dir configurable?
move
(
disk_path
,
trash_path
)
...
...
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