Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
dc0b5915
Commit
dc0b5915
authored
8 years ago
by
juanf
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-3092 : Export functionality, cleanning temporal files
SVN: 36619
parent
f2fc2840
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/exports-api/exports-api.py
+4
-0
4 additions, 0 deletions
...n-lims/1/dss/reporting-plugins/exports-api/exports-api.py
with
4 additions
and
0 deletions
openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/exports-api/exports-api.py
+
4
−
0
View file @
dc0b5915
...
...
@@ -21,6 +21,8 @@ import threading
#Java Core
from
java.io
import
ByteArrayInputStream
from
org.apache.commons.io
import
IOUtils
from
org.apache.commons.io
import
FileUtils
from
java.lang
import
String
#Zip Format
...
...
@@ -288,6 +290,8 @@ def export(sessionToken, entities, userEmail, mailClient):
#Send Email
sendMail
(
mailClient
,
userEmail
,
tempZipFileWorkspaceURL
);
#Remove temporal folder and zip
FileUtils
.
forceDelete
(
File
(
tempDirPath
));
FileUtils
.
forceDelete
(
File
(
tempZipFilePath
));
return
True
def
getFilePath
(
spaceCode
,
projCode
,
expCode
,
sampCode
,
dataCode
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment