Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
B2SAFE
B2SAFE Core
Commits
8ba1c3c7
Commit
8ba1c3c7
authored
Feb 08, 2018
by
Julia Kaufhold
Browse files
change requested in issue #112 on GitHub, deleting / in key.
parent
c5b0f2c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmd/b2shareclient.py
View file @
8ba1c3c7
...
@@ -89,7 +89,8 @@ def collectPIDsForCollection(collectionPath, configuration):
...
@@ -89,7 +89,8 @@ def collectPIDsForCollection(collectionPath, configuration):
for
filePath
in
filePathsMap
.
keys
():
for
filePath
in
filePathsMap
.
keys
():
filePID
=
irodsu
.
getMetadata
(
filePath
,
"PID"
)
filePID
=
irodsu
.
getMetadata
(
filePath
,
"PID"
)
if
filePID
:
if
filePID
:
PIDobject
=
'{"key":"'
+
filePath
+
'",'
+
' "ePIC_PID":"'
+
filePID
[
0
]
+
'"}'
# filePath[1:] deletes leading / in a path as requested in issue #112 on GitHub
PIDobject
=
'{"key":"'
+
filePath
[
1
:]
+
'",'
+
' "ePIC_PID":"'
+
filePID
[
0
]
+
'"}'
PIDobjectsString
=
PIDobjectsString
+
PIDobject
+
','
PIDobjectsString
=
PIDobjectsString
+
PIDobject
+
','
forLastElemIndex
=
len
(
PIDobjectsString
)
-
1
#delete last comma
forLastElemIndex
=
len
(
PIDobjectsString
)
-
1
#delete last comma
PIDobjectsString
=
PIDobjectsString
[:
forLastElemIndex
]
+
']'
PIDobjectsString
=
PIDobjectsString
[:
forLastElemIndex
]
+
']'
...
...
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