mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Avoid char conflict with bind properties
This commit is contained in:
parent
dcafac1913
commit
6f3b194944
2 changed files with 4 additions and 4 deletions
|
@ -172,7 +172,7 @@ for panel_name, panel in loaded_toml.items():
|
|||
if bind == "settings" and param.get('type', 'string') == 'file':
|
||||
bind = 'null'
|
||||
|
||||
print(';'.join([
|
||||
print('|'.join([
|
||||
name,
|
||||
param.get('type', 'string'),
|
||||
bind
|
||||
|
@ -181,7 +181,7 @@ EOL
|
|||
)
|
||||
for line in $lines; do
|
||||
# Split line into short_setting, type and bind
|
||||
IFS=';' read short_setting type bind <<<"$line"
|
||||
IFS='|' read short_setting type bind <<<"$line"
|
||||
binds[${short_setting}]="$bind"
|
||||
types[${short_setting}]="$type"
|
||||
file_hash[${short_setting}]=""
|
||||
|
|
|
@ -345,14 +345,14 @@ class ConfigPanel:
|
|||
"defaults": {"version": 1.0},
|
||||
},
|
||||
"panels": {
|
||||
"properties": ["name", "services", "actions", "help"],
|
||||
"properties": ["name", "services", "actions", "help", "bind"],
|
||||
"defaults": {
|
||||
"services": [],
|
||||
"actions": {"apply": {"en": "Apply"}},
|
||||
},
|
||||
},
|
||||
"sections": {
|
||||
"properties": ["name", "services", "optional", "help", "visible"],
|
||||
"properties": ["name", "services", "optional", "help", "visible", "bind"],
|
||||
"defaults": {
|
||||
"name": "",
|
||||
"services": [],
|
||||
|
|
Loading…
Add table
Reference in a new issue