Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
afbfa085
authored
Apr 24, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: fix create_from_url()
parent
1897b88b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
circle/storage/tasks/local_tasks.py
+7
-12
No files found.
circle/storage/tasks/local_tasks.py
View file @
afbfa085
...
...
@@ -46,18 +46,13 @@ def restore(disk, user):
disk
.
restore
(
task_uuid
=
restore
.
request
.
id
,
user
=
user
)
class
CreateFromURLTask
(
AbortableTask
):
def
__init__
(
self
):
self
.
bind
(
celery
)
def
run
(
self
,
**
kwargs
):
Disk
=
kwargs
.
pop
(
'cls'
)
Disk
.
create_from_url
(
url
=
kwargs
.
pop
(
'url'
),
task_uuid
=
create_from_url
.
request
.
id
,
abortable_task
=
self
,
**
kwargs
)
create_from_url
=
CreateFromURLTask
()
@celery.task
(
base
=
AbortableTask
,
bind
=
True
)
def
create_from_url
(
self
,
**
kwargs
):
Disk
=
kwargs
.
pop
(
'cls'
)
Disk
.
create_from_url
(
url
=
kwargs
.
pop
(
'url'
),
task_uuid
=
self
.
request
.
id
,
abortable_task
=
self
,
**
kwargs
)
@celery.task
...
...
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