|
|
|
@ -885,7 +885,7 @@ class shareLdap(imp_cl_err, imp_cl_xml, imp_cl_help, imp_cl_smcon):
|
|
|
|
|
self.conLdap = ldapObj.conLdap
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
def dialogYesNo(self, message):
|
|
|
|
|
def dialogYn(self, message):
|
|
|
|
|
def getChar():
|
|
|
|
|
fd = sys.stdin.fileno()
|
|
|
|
|
oldSet = termios.tcgetattr(fd)
|
|
|
|
@ -909,6 +909,17 @@ class shareLdap(imp_cl_err, imp_cl_xml, imp_cl_help, imp_cl_smcon):
|
|
|
|
|
sys.stdout.write("\n")
|
|
|
|
|
return res
|
|
|
|
|
|
|
|
|
|
def dialogYesNo(self, message):
|
|
|
|
|
sys.stdout.write(message + ": ")
|
|
|
|
|
strIn=sys.stdin.readline().lower().strip()
|
|
|
|
|
sys.stdout.write("\n")
|
|
|
|
|
if "yes" == strIn:
|
|
|
|
|
return True
|
|
|
|
|
elif "no" == strIn:
|
|
|
|
|
return False
|
|
|
|
|
else:
|
|
|
|
|
return None
|
|
|
|
|
|
|
|
|
|
def createClVars(self, clVars=False):
|
|
|
|
|
"""Создает объект Vars"""
|
|
|
|
|
if not clVars:
|
|
|
|
@ -2190,7 +2201,7 @@ service"))
|
|
|
|
|
# если вы готовы продолжить работу программы нажмите Y если нет n
|
|
|
|
|
messDialog = \
|
|
|
|
|
_("If you are ready to continue executing the program")+", "+\
|
|
|
|
|
_("press Y") +", "+ _("if not n")
|
|
|
|
|
_("input 'yes'") +", "+ _("if not 'no'")
|
|
|
|
|
if not self.dialogYesNo(messDialog):
|
|
|
|
|
return True
|
|
|
|
|
else:
|
|
|
|
@ -3121,7 +3132,7 @@ in Unix service ...") %str(primaryMail))
|
|
|
|
|
# если вы готовы продолжить работу программы нажмите Y если нет n
|
|
|
|
|
messDialog = \
|
|
|
|
|
_("If you are ready to continue executing the program") + ", "+\
|
|
|
|
|
_("press Y") +", "+ _("if not n")
|
|
|
|
|
_("input 'yes'") +", "+ _("if not 'no'")
|
|
|
|
|
if not self.dialogYesNo(messDialog):
|
|
|
|
|
return True
|
|
|
|
|
else:
|
|
|
|
@ -3735,7 +3746,7 @@ class servJabber(shareLdap):
|
|
|
|
|
# если вы готовы продолжить работу программы нажмите Y если нет n
|
|
|
|
|
messDialog = \
|
|
|
|
|
_("If you are ready to continue executing the program") + ", "+\
|
|
|
|
|
_("press Y") +", "+ _("if not n")
|
|
|
|
|
_("input 'yes'") +", "+ _("if not 'no'")
|
|
|
|
|
if not self.dialogYesNo(messDialog):
|
|
|
|
|
return True
|
|
|
|
|
else:
|
|
|
|
@ -4216,7 +4227,7 @@ class servSamba(shareLdap):
|
|
|
|
|
# если вы готовы продолжить работу программы нажмите Y если нет n
|
|
|
|
|
messDialog = \
|
|
|
|
|
_("If you are ready to continue executing the program")+", "+\
|
|
|
|
|
_("press Y") +", "+ _("if not n")
|
|
|
|
|
_("input 'yes'") +", "+ _("if not 'no'")
|
|
|
|
|
if not self.dialogYesNo(messDialog):
|
|
|
|
|
return True
|
|
|
|
|
else:
|
|
|
|
@ -4845,7 +4856,7 @@ class servLdap(shareLdap):
|
|
|
|
|
# если вы готовы продолжить работу программы нажмите Y если нет n
|
|
|
|
|
messDialog = \
|
|
|
|
|
_("If you are ready to continue executing the program")+", "+\
|
|
|
|
|
_("press Y") +", "+ _("if not n")
|
|
|
|
|
_("input 'yes'") +", "+ _("if not 'no'")
|
|
|
|
|
if not self.dialogYesNo(messDialog):
|
|
|
|
|
return True
|
|
|
|
|
else:
|
|
|
|
|