| | |
| | |
|
| | | def __StrToList(self, strValue):
|
| | | setList = []
|
| | | if ("[" in strValue and "]" in strValue) or ("(" in strValue and ")" in strValue):
|
| | | if (strValue.startswith("[") and strValue.endswith("]")) or (strValue.startswith("(") and strValue.endswith(")")):
|
| | | setList = eval(strValue)
|
| | | elif strValue in ["0", "-", ""]:
|
| | | pass
|
| | |
| | | for value in strValue.split(ChConfig.Def_Str_Montant):
|
| | | if value.isdigit():
|
| | | value = int(value)
|
| | | elif (value.startswith("[") and value.endswith("]")) or (value.startswith("(") and value.endswith(")")):
|
| | | value = eval(value)
|
| | | setList.append(value)
|
| | | if setList:
|
| | | setList = tuple(setList)
|