diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 16:27:59 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 16:27:59 +0200 |
commit | 267c294e6ec9c96dbf29ca7f003639334d71ceba (patch) | |
tree | a3353623049608f1641eb8906e6f162a568ec872 | |
parent | Rename ClickAndLoad to ClickNLoad (diff) | |
download | pyload-267c294e6ec9c96dbf29ca7f003639334d71ceba.tar.xz |
Improve Setup a bit
-rw-r--r-- | pyload/config/Setup.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pyload/config/Setup.py b/pyload/config/Setup.py index 3ce35bfe1..ce5a5fb88 100644 --- a/pyload/config/Setup.py +++ b/pyload/config/Setup.py @@ -302,6 +302,7 @@ class SetupAssistant(object): db.shutdown() print + print print _("External clients (GUI, CLI or other) need remote access to work over the network.") print _("However, if you only want to use the webinterface you may disable it to save ram.") self.config.set("remote", "activated", self.ask(_("Enable remote access"), self.no, bool=True)) @@ -447,10 +448,10 @@ class SetupAssistant(object): confpath = self.set_configdir(confdir) print if not confpath: - print _("Failed to change the current config path!") + print _("Failed to change the current CONFIG PATH!") print else: - print _("pyLoad config path successfully changed.") + print _("CONFIG PATH successfully changed to: %s") % configdir break @@ -507,20 +508,28 @@ class SetupAssistant(object): while p1 != p2: sys.stdout.write(_("Password: ")) p1 = getpass("").strip("\n\r") - print("passwd:'%s'" % p1) + if len(p1) < pwlen: + print print _("Password too short! Use at least %s symbols." % pwlen) + print continue elif not p1.isalnum(): + print print _("Password must be alphanumeric.") + print continue sys.stdout.write(_("Password (again): ")) p2 = getpass("").strip("\n\r") if p1 == p2: + if self.ask(_("Show password?"), self.no, bool=True): + print + print _("Your Password is: %s") % p1 return p1 else: + print print _("Passwords did not match.") while True: |