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
3a41e3ae
Commit
3a41e3ae
authored
5 years ago
by
vkovtun
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-8405 Rolling back last 2 changes.
parent
7493324f
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/as/initialize-master-data.py
+4
-4
4 additions, 4 deletions
...dist/core-plugins/eln-lims/1/as/initialize-master-data.py
with
4 additions
and
4 deletions
openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/initialize-master-data.py
+
4
−
4
View file @
3a41e3ae
...
...
@@ -14,18 +14,18 @@
# limitations under the License.
#
# MasterDataRegistrationTransaction Class
import
sys
from
ch.ethz.sis.openbis.generic.asapi.v3.dto.service
import
CustomASServiceExecutionOptions
from
ch.ethz.sis.openbis.generic.asapi.v3.dto.service.id
import
CustomASServiceCode
from
ch.ethz.sis.openbis.generic.server.asapi.v3
import
ApplicationServerApi
from
ch.systemsx.cisd.openbis.generic.server
import
CommonServiceProvider
from
ch.ethz.sis.openbis.generic.asapi.v3.dto.service.id
import
CustomASServiceCode
from
ch.ethz.sis.openbis.generic.asapi.v3.dto.service
import
CustomASServiceExecutionOptions
from
ch.systemsx.cisd.openbis.generic.server.jython.api.v1.impl
import
MasterDataRegistrationHelper
import
sys
helper
=
MasterDataRegistrationHelper
(
sys
.
path
)
api
=
CommonServiceProvider
.
getApplicationContext
().
getBean
(
ApplicationServerApi
.
INTERNAL_SERVICE_NAME
)
sessionToken
=
api
.
loginAsSystem
()
props
=
CustomASServiceExecutionOptions
().
withParameter
(
'
xls
'
,
helper
.
listXlsByteArrays
())
\
.
withParameter
(
'
xls_name
'
,
'
ELN-LIMS
'
).
withParameter
(
'
update_mode
'
,
'
UPDATE_IF
_EXIST
S
'
)
\
.
withParameter
(
'
xls_name
'
,
'
ELN-LIMS
'
).
withParameter
(
'
update_mode
'
,
'
IGNORE
_EXIST
ING
'
)
\
.
withParameter
(
'
scripts
'
,
helper
.
getAllScripts
())
result
=
api
.
executeCustomASService
(
sessionToken
,
CustomASServiceCode
(
"
xls-import-api
"
),
props
);
print
(
"
======================== master-data xls ingestion result ========================
"
)
...
...
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