pywebexec 2.1.3__py3-none-any.whl → 2.1.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pywebexec/pywebexec.py +1 -2
- pywebexec/static/css/form.css +2 -2
- pywebexec/static/js/schemaform.js +2 -0
- pywebexec/version.py +2 -2
- {pywebexec-2.1.3.dist-info → pywebexec-2.1.5.dist-info}/METADATA +1 -1
- {pywebexec-2.1.3.dist-info → pywebexec-2.1.5.dist-info}/RECORD +10 -10
- {pywebexec-2.1.3.dist-info → pywebexec-2.1.5.dist-info}/LICENSE +0 -0
- {pywebexec-2.1.3.dist-info → pywebexec-2.1.5.dist-info}/WHEEL +0 -0
- {pywebexec-2.1.3.dist-info → pywebexec-2.1.5.dist-info}/entry_points.txt +0 -0
- {pywebexec-2.1.3.dist-info → pywebexec-2.1.5.dist-info}/top_level.txt +0 -0
pywebexec/pywebexec.py
CHANGED
@@ -906,9 +906,8 @@ def run_dynamic_command(cmd):
|
|
906
906
|
})
|
907
907
|
Path(get_output_file_path(command_id)).touch()
|
908
908
|
if batch_values:
|
909
|
-
params = ["-n", "-p", str(parallel), "-D", str(delay), "-P", *batch_values, '--', sys.argv[0], "-d", ".", "--", "run", cmd_path, *params]
|
909
|
+
params = ["-n", "-p", str(parallel), "-D", str(delay), "-P", *batch_values, '--', sys.argv[0], "-d", ".", "-u", user, "--", "run", cmd_path, *params]
|
910
910
|
cmd_path = shutil.which("run-para")
|
911
|
-
print(params)
|
912
911
|
thread = threading.Thread(target=run_command, args=(request.remote_addr, user, cmd_path, params, command_id, rows, cols))
|
913
912
|
thread.start()
|
914
913
|
return jsonify({'message': 'Command is running', 'command_id': command_id})
|
pywebexec/static/css/form.css
CHANGED
@@ -72,7 +72,7 @@
|
|
72
72
|
font-size: 14px;
|
73
73
|
font-weight: normal;
|
74
74
|
line-height: 1.42857143;
|
75
|
-
color:
|
75
|
+
color: black;
|
76
76
|
background-color: #fff;
|
77
77
|
background-image: none;
|
78
78
|
border: 1px solid #ccc;
|
@@ -162,7 +162,7 @@
|
|
162
162
|
border-radius: 15px;
|
163
163
|
border-bottom-right-radius: 5px;
|
164
164
|
border: 1px solid #ccc;
|
165
|
-
padding:
|
165
|
+
padding: 1px 10px;
|
166
166
|
margin: 0px;
|
167
167
|
width: unset;
|
168
168
|
line-height: 1.42857143;
|
@@ -49,6 +49,7 @@ function createSchemaForm(form, schema, onSubmit) {
|
|
49
49
|
if (onSubmit != null) {
|
50
50
|
console.log(schema.schema_options.batch_param)
|
51
51
|
if (schema && schema.schema_options && schema.schema_options.batch_param) {
|
52
|
+
schema.properties[schema.schema_options.batch_param].required = true;
|
52
53
|
if (!schema.properties.parallel) {
|
53
54
|
schema.properties['parallel'] = {
|
54
55
|
type: 'integer',
|
@@ -94,6 +95,7 @@ function createSchemaForm(form, schema, onSubmit) {
|
|
94
95
|
});
|
95
96
|
} else {
|
96
97
|
if (schema && schema.properties && schema.properties.params.schema_options && schema.properties.params.schema_options.batch_param) {
|
98
|
+
schema.properties.params.properties[schema.properties.params.schema_options.batch_param].required = true;
|
97
99
|
for (i = 0; i < formDesc.length; i++) {
|
98
100
|
if (formDesc[i].key == 'params.' + schema.properties.params.schema_options.batch_param) {
|
99
101
|
formDesc[i].type = 'textarea';
|
pywebexec/version.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
pywebexec/__init__.py,sha256=197fHJy0UDBwTTpGCGortZRr-w2kTaD7MxqdbVmTEi0,61
|
2
2
|
pywebexec/host_ip.py,sha256=Ud_HTflWVQ8789aoQ2RZdT1wGI-ccvrwSWGz_c7T3TI,1241
|
3
|
-
pywebexec/pywebexec.py,sha256=
|
3
|
+
pywebexec/pywebexec.py,sha256=wC-E6xtMokjFz9p0FeiK0_COEw2RWbR9zMHojba9XHM,44624
|
4
4
|
pywebexec/swagger.yaml,sha256=zP_Nz69vZx0iwbKTwiQgSs8rJRUTiGKRyIkWzMPANOE,6688
|
5
|
-
pywebexec/version.py,sha256=
|
6
|
-
pywebexec/static/css/form.css,sha256=
|
5
|
+
pywebexec/version.py,sha256=ezuEPMmZBPsFTNec3uKYV6IfWrjNpfiIok1e_GQvZGQ,511
|
6
|
+
pywebexec/static/css/form.css,sha256=_KPatc04U9mkTxENl1WOGWlhXwCeHB6-7fWd8sXt_vI,4491
|
7
7
|
pywebexec/static/css/markdown.css,sha256=3RzUnpVBdF6cQuB_NXV7hMTc0quYU8sfyuZcpsREj6A,1939
|
8
8
|
pywebexec/static/css/style.css,sha256=ynccbEDzK07rurLm-UirUs5j_hVfXlIgaHeUIq9WvA0,9969
|
9
9
|
pywebexec/static/css/swagger-ui.css,sha256=xhXN8fnUaIACGHuPIEIr9-qmyYr6Zx0k2wv4Qy7Bg1Y,154985
|
@@ -35,7 +35,7 @@ pywebexec/static/images/success.svg,sha256=NVwezvVMplt46ElW798vqGfrL21Mw_DWHUp_q
|
|
35
35
|
pywebexec/static/images/swagger-ui.svg,sha256=FR0yeOVwe4zCYKZAjCGcT_m0Mf25NexIVaSXifIkoU0,2117
|
36
36
|
pywebexec/static/js/executables.js,sha256=Hbcpv1IZfxC406qhwkwoTvJh8TZD7kEc651IXkQDYws,12077
|
37
37
|
pywebexec/static/js/popup.js,sha256=0fr3pp4j9D2fXEVnHyQrx2bPWFHfgbb336dbewgH1d8,9023
|
38
|
-
pywebexec/static/js/schemaform.js,sha256=
|
38
|
+
pywebexec/static/js/schemaform.js,sha256=vB8d3MiANVFNGrmCQX5o-Yxalf1gKDCkLHQnrjjGpGA,5264
|
39
39
|
pywebexec/static/js/script.js,sha256=-CfZRzjusxRCY7Kol_KNOq8BdRdHYTc5X3vXNChlsdQ,17631
|
40
40
|
pywebexec/static/js/swagger-form.js,sha256=BU64XxyfrWx4DnpAuaWtG-9YpcHF3OzzAYzjiSH0NGo,3826
|
41
41
|
pywebexec/static/js/js-yaml/LICENSE,sha256=oHvCRGi5ZUznalR9R6LbKC0HcztxXbTHOpi9Y5YflVA,1084
|
@@ -66,9 +66,9 @@ pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
66
66
|
pywebexec/templates/index.html,sha256=KeNLBH9PN_ZuGhzwrjvRTj2oBtbINv_SbwGQpOahNWo,3820
|
67
67
|
pywebexec/templates/popup.html,sha256=3kpMccKD_OLLhJ4Y9KRw6Ny8wQWjVaRrUfV9y5-bDiQ,1580
|
68
68
|
pywebexec/templates/swagger_ui.html,sha256=9ngyldkyEdLonBjl97mbIZUlVk-jxwcHrvFzMSrveyU,1067
|
69
|
-
pywebexec-2.1.
|
70
|
-
pywebexec-2.1.
|
71
|
-
pywebexec-2.1.
|
72
|
-
pywebexec-2.1.
|
73
|
-
pywebexec-2.1.
|
74
|
-
pywebexec-2.1.
|
69
|
+
pywebexec-2.1.5.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
70
|
+
pywebexec-2.1.5.dist-info/METADATA,sha256=65C-IFYy2zAKCUTxXMxByvsM4ROlcXoCxDjFbOs3Iso,12776
|
71
|
+
pywebexec-2.1.5.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
72
|
+
pywebexec-2.1.5.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
73
|
+
pywebexec-2.1.5.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
74
|
+
pywebexec-2.1.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|