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
ac525cc4
Commit
ac525cc4
authored
4 years ago
by
juanf
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-10005 : More validation fixes, escape box names
parent
1fdbabcc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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/services/as-eln-lims-api/script.py
+2
-1
2 additions, 1 deletion
...-plugins/eln-lims/1/as/services/as-eln-lims-api/script.py
with
2 additions
and
1 deletion
openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/services/as-eln-lims-api/script.py
+
2
−
1
View file @
ac525cc4
import
ch.systemsx.cisd.openbis.generic.server.ComponentNames
as
ComponentNames
import
ch.systemsx.cisd.openbis.generic.server.CommonServiceProvider
as
CommonServiceProvider
import
ch.systemsx.cisd.common.exceptions.UserFailureException
as
UserFailureException
import
org.apache.lucene.queryparser.classic.QueryParserBase
as
QueryParserBase
def
process
(
context
,
parameters
):
method
=
parameters
.
get
(
"
method
"
);
...
...
@@ -102,7 +103,7 @@ def isValidStoragePositionToInsertUpdate(context, parameters):
searchCriteriaStorageBoxPosition
.
withProperty
(
"
$STORAGE_POSITION.STORAGE_CODE
"
).
thatEquals
(
storageCode
);
searchCriteriaStorageBoxPosition
.
withNumberProperty
(
"
$STORAGE_POSITION.STORAGE_RACK_ROW
"
).
thatEquals
(
int
(
storageRackRow
));
searchCriteriaStorageBoxPosition
.
withNumberProperty
(
"
$STORAGE_POSITION.STORAGE_RACK_COLUMN
"
).
thatEquals
(
int
(
storageRackColumn
));
searchCriteriaStorageBoxPosition
.
withProperty
(
"
$STORAGE_POSITION.STORAGE_BOX_NAME
"
).
thatEquals
(
storageBoxName
);
searchCriteriaStorageBoxPosition
.
withProperty
(
"
$STORAGE_POSITION.STORAGE_BOX_NAME
"
).
thatEquals
(
QueryParserBase
.
escape
(
storageBoxName
)
)
;
searchCriteriaStorageBoxPosition
.
withProperty
(
"
$STORAGE_POSITION.STORAGE_BOX_POSITION
"
).
thatContains
(
storageBoxSubPosition
);
searchCriteriaStorageBoxResults
=
context
.
applicationService
.
searchSamples
(
sessionToken
,
searchCriteriaStorageBoxPosition
,
fetchOptions
).
getObjects
();
# 5.1 If the given box position dont exists (the list is empty), is new
...
...
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