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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Merge requests
!150
DOC: explain run_server_side_script
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
DOC: explain run_server_side_script
f-mini-doc
into
main
Overview
1
Commits
2
Pipelines
2
Changes
2
Merged
Henrik tom Wörden
requested to merge
f-mini-doc
into
main
10 months ago
Overview
1
Commits
2
Pipelines
2
Changes
2
Added the rtd theme as dependency and a docstring. I have the build docs here for you:
Edited
10 months ago
by
Henrik tom Wörden
0
0
Merge request reports
Compare
main
version 1
f12672ca
10 months ago
main (base)
and
latest version
latest version
413ec912
2 commits,
10 months ago
version 1
f12672ca
1 commit,
10 months ago
2 files
+
14
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
src/linkahead/utils/server_side_scripting.py
+
13
−
0
View file @ 413ec912
Edit in single-file editor
Open in Web IDE
Show full file
@@ -99,6 +99,19 @@ def _make_request(call, pos_args, opts, files=None):
@@ -99,6 +99,19 @@ def _make_request(call, pos_args, opts, files=None):
def
run_server_side_script
(
call
,
*
args
,
files
=
None
,
**
kwargs
):
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
Return
------
------
Loading