Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Commits
f12672ca
Commit
f12672ca
authored
7 months ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
DOC: explain run_server_side_script
parent
86ffb96a
No related branches found
No related tags found
1 merge request
!150
DOC: explain run_server_side_script
Pipeline
#54685
passed with warnings
7 months ago
Stage: code_style
Stage: linting
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README_SETUP.md
+1
-0
1 addition, 0 deletions
README_SETUP.md
src/linkahead/utils/server_side_scripting.py
+13
-0
13 additions, 0 deletions
src/linkahead/utils/server_side_scripting.py
with
14 additions
and
0 deletions
README_SETUP.md
+
1
−
0
View file @
f12672ca
...
...
@@ -119,6 +119,7 @@ Build documentation in `build/` with `make doc`.
-
`sphinx`
-
`sphinx-autoapi`
-
`recommonmark`
-
`sphinx_rtd_theme`
### How to contribute ###
...
...
This diff is collapsed.
Click to expand it.
src/linkahead/utils/server_side_scripting.py
+
13
−
0
View file @
f12672ca
...
...
@@ -99,6 +99,19 @@ def _make_request(call, pos_args, opts, files=None):
def
run_server_side_script
(
call
,
*
args
,
files
=
None
,
**
kwargs
):
"""
Parameters
----------
call : str
name of the script to be called, potentially with path prefix (e.g. `management/update.py`)
*args : list(str)
list of positional arguments
files : dict
dictionary with where keys are the argument names with prefix (e.g. `-p1` or `-Ofile`) and
the values are the paths to the files to be uploaded. Note, that only the base name will be
used when uploaded. Files will be placed in the `.upload_files` folder. Thus, the script
will be called with the argument `<key>=.upload_files/<basename>`.
**kwargs : dict
kwargs will be passed to `_make_request`
Return
------
...
...
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