from .ldap import LdapAppError, FatalLDAPError
from .ldap import BaseLdapApplication
-__version__ = '0.5.4'
+__version__ = '0.5.5'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
# -------------------------------------------------------------------------
def request_for_remove(self):
- if self.yes or self.quiet:
+ if self.quiet:
return True
print()
from .ldap import BaseLdapApplication
from .ldap import PasswordFileOptionAction
-__version__ = '0.6.3'
+__version__ = '0.6.4'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
print()
msg = _("Apply new password? [{yes}/{no}]?").format(
yes=self.colored(_('yes'), 'RED'), no=self.colored(_('No'), 'GREEN')) + ' '
- do_set_passwd = False
- if self.yes:
- do_set_passwd = True
- else:
- do_set_passwd = self.ask_for_yes_or_no(msg, default_on_empty=False)
- print()
+ do_set_passwd = self.ask_for_yes_or_no(msg, default_on_empty=False)
+ print()
if not do_set_passwd:
msg = _("Do not setting password for {!r}.").format(self.user_dn)