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
6995fa31
Commit
6995fa31
authored
10 years ago
by
juanf
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-1321 : PAPER - UI to create Users (Server Side)
SVN: 33030
parent
f470c147
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
plasmid/source/core-plugins/newbrowser/1/dss/reporting-plugins/newbrowserapi/script.py
+7
-2
7 additions, 2 deletions
...ewbrowser/1/dss/reporting-plugins/newbrowserapi/script.py
with
7 additions
and
2 deletions
plasmid/source/core-plugins/newbrowser/1/dss/reporting-plugins/newbrowserapi/script.py
+
7
−
2
View file @
6995fa31
...
@@ -23,6 +23,7 @@ from java.lang import System
...
@@ -23,6 +23,7 @@ from java.lang import System
from
net.lingala.zip4j.core
import
ZipFile
from
net.lingala.zip4j.core
import
ZipFile
import
time
import
time
import
subprocess
import
subprocess
import
os.path
def
process
(
tr
,
parameters
,
tableBuilder
):
def
process
(
tr
,
parameters
,
tableBuilder
):
method
=
parameters
.
get
(
"
method
"
);
method
=
parameters
.
get
(
"
method
"
);
...
@@ -111,8 +112,12 @@ def init(tr, parameters, tableBuilder):
...
@@ -111,8 +112,12 @@ def init(tr, parameters, tableBuilder):
def
registerUserPassword
(
tr
,
parameters
,
tableBuilder
):
def
registerUserPassword
(
tr
,
parameters
,
tableBuilder
):
userId
=
parameters
.
get
(
"
userId
"
);
#String
userId
=
parameters
.
get
(
"
userId
"
);
#String
password
=
parameters
.
get
(
"
password
"
);
#String
password
=
parameters
.
get
(
"
password
"
);
#String
subprocess
.
call
([
'
../openBIS-server/jetty/bin/passwd.sh
'
,
'
add
'
,
userId
,
'
-p
'
,
password
])
path
=
'
../openBIS-server/jetty/bin/passwd.sh
'
;
return
True
;
if
os
.
path
.
isfile
(
path
):
subprocess
.
call
([
path
,
'
add
'
,
userId
,
'
-p
'
,
password
])
return
True
;
else
:
return
False
;
def
getThreadProperties
(
transaction
):
def
getThreadProperties
(
transaction
):
threadPropertyDict
=
{}
threadPropertyDict
=
{}
...
...
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