fixed value modification for print

py3_forced
parent 25c8045ffd
commit 2491f64a43

@ -14496,7 +14496,7 @@ class cl_info(cl_utils2.cl_smartcon, prnServ):
forwardZones = [x for x in slaveZones if '.in-addr.arpa' not in x] forwardZones = [x for x in slaveZones if '.in-addr.arpa' not in x]
# Формирование строки для отчета # Формирование строки для отчета
title=_("Information about the slave DNS zones in \ title=_("Information about the slave DNS zones in \
/etc/bind/named.conf") /etc/bind/named.conf")
headerList = [_("DNS zone"),_("IP master DNS servers")] headerList = [_("DNS zone"),_("IP master DNS servers")]
dataList = [[x] for x in forwardZones + reverseZones] dataList = [[x] for x in forwardZones + reverseZones]
dataList = [dataList[x] + [slaveIPs[x]] for x in range(len(dataList))] dataList = [dataList[x] + [slaveIPs[x]] for x in range(len(dataList))]
@ -15500,17 +15500,17 @@ with another option."))
retValue = self._getUserGroupName(retValue, service) retValue = self._getUserGroupName(retValue, service)
# Ставим Y в случае выставленного флага # Ставим Y в случае выставленного флага
elif attr == "initials": elif attr == "initials":
if value == "No": if retValue == "No":
retValue = _("Yes") retValue = _("Yes")
else: else:
retValue = _("No") retValue = _("No")
elif attr == "accountStatus": elif attr == "accountStatus":
if value == "passive": if retValue == "passive":
retValue = _("Yes") retValue = _("Yes")
else: else:
retValue = _("No") retValue = _("No")
elif attr == "shadowExpire": elif attr == "shadowExpire":
if value == "1": if retValue == "1":
retValue = _("Yes") retValue = _("Yes")
else: else:
retValue = _("No") retValue = _("No")
@ -15520,12 +15520,12 @@ with another option."))
else: else:
retValue = _("No") retValue = _("No")
elif attr == "userPassword": elif attr == "userPassword":
if value == "crypt{xxx}": if retValue == "crypt{xxx}":
retValue = _("No") retValue = _("No")
else: else:
retValue = _("Yes") retValue = _("Yes")
elif attr == "shadowFlag": elif attr == "shadowFlag":
if value == "1": if retValue == "1":
retValue = _("Yes") retValue = _("Yes")
else: else:
retValue = _("No") retValue = _("No")

Loading…
Cancel
Save