develop
Самоукин Алексей 14 years ago
parent 5c5f1c7a98
commit 1f3eecb6ad

@ -2878,11 +2878,18 @@ class templateFunction(_error, _shareTemplate, _shareTermsFunction):
из /var/calculate/remote/calculate.env
"""
terms = funArgv.replace(" ","").split(",")
if len(terms) != 2:
if len(terms) != 1:
self.printErrTemplate()
cl_overriding.exit(1)
textLine = terms[0]
vals = textLine.split(".")
if vals!= 2:
self.printErrTemplate()
cl_overriding.exit(1)
if filter(lambda x: not x.strip(), vals):
self.printErrTemplate()
cl_overriding.exit(1)
service = terms[0].strip()
option = terms[1].strip()
service, option = vals
if not service or not option:
self.printErrTemplate()
cl_overriding.exit(1)

Loading…
Cancel
Save