| | |
| | |
|
| | | def __StrToList(self, strValue):
|
| | | setList = []
|
| | | if (strValue.startswith("[") and strValue.endswith("]")) or (strValue.startswith("(") and strValue.endswith(")")):
|
| | | setList = eval(strValue)
|
| | | elif strValue in ["0", "-", ""]:
|
| | | pass
|
| | | elif strValue.isdigit():
|
| | | setList = (int(strValue),)
|
| | | else:
|
| | | if ChConfig.Def_Str_Montant in strValue: # |åå²çä¼å
|
| | | for value in strValue.split(ChConfig.Def_Str_Montant):
|
| | | if value.isdigit():
|
| | | value = int(value)
|
| | |
| | | setList.append(value)
|
| | | if setList:
|
| | | setList = tuple(setList)
|
| | | elif (strValue.startswith("[") and strValue.endswith("]")) or (strValue.startswith("(") and strValue.endswith(")")):
|
| | | setList = eval(strValue)
|
| | | elif strValue in ["0", "-", ""]:
|
| | | pass
|
| | | elif strValue.isdigit():
|
| | | setList = (int(strValue),)
|
| | | return setList
|
| | |
|
| | | #<%Ipy_Cache_Func%>
|