mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Tags question
This commit is contained in:
parent
a0ee39a038
commit
9eda00698c
1 changed files with 11 additions and 0 deletions
|
@ -646,6 +646,12 @@ class TagsQuestion(Question):
|
||||||
return ",".join(value)
|
return ",".join(value)
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def normalize(value, option={}):
|
||||||
|
if isinstance(value, list):
|
||||||
|
return ",".join(value)
|
||||||
|
return value
|
||||||
|
|
||||||
def _prevalidate(self):
|
def _prevalidate(self):
|
||||||
values = self.value
|
values = self.value
|
||||||
if isinstance(values, str):
|
if isinstance(values, str):
|
||||||
|
@ -657,6 +663,11 @@ class TagsQuestion(Question):
|
||||||
super()._prevalidate()
|
super()._prevalidate()
|
||||||
self.value = values
|
self.value = values
|
||||||
|
|
||||||
|
def _post_parse_value(self):
|
||||||
|
if isinstance(self.value, list):
|
||||||
|
self.value = ",".join(self.value)
|
||||||
|
return super()._post_parse_value()
|
||||||
|
|
||||||
|
|
||||||
class PasswordQuestion(Question):
|
class PasswordQuestion(Question):
|
||||||
hide_user_input_in_prompt = True
|
hide_user_input_in_prompt = True
|
||||||
|
|
Loading…
Add table
Reference in a new issue