Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
File Transfer Service
fts-rest
Commits
ee6257ad
Commit
ee6257ad
authored
Feb 06, 2017
by
Maria Arsuaga Rios
Browse files
FTS-704
:Respect the user decision for session reuse
parent
35a5ac20
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fts3rest/fts3rest/lib/JobBuilder.py
View file @
ee6257ad
...
...
@@ -491,6 +491,12 @@ class JobBuilder(object):
if
job_type
==
'Y'
and
(
not
self
.
job
[
'source_se'
]
or
not
self
.
job
[
'dest_se'
]):
raise
HTTPBadRequest
(
'Reuse jobs can only contain transfers for the same source and destination storage'
)
if
job_type
==
'Y'
and
(
self
.
job
[
'source_se'
]
and
self
.
job
[
'dest_se'
]):
self
.
job
[
'job_type'
]
==
'Y'
if
job_type
==
'N'
:
self
.
job
[
'job_type'
]
=
'N'
if
(
self
.
job
[
'source_se'
]
and
self
.
job
[
'dest_se'
]
and
(
job_type
is
None
)
and
(
len
(
self
.
files
)
>
1
))
:
small_files
=
0
min_small_files
=
len
(
self
.
files
)
-
2
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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