diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-02 17:40:56 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-02 17:40:56 +0200 |
commit | 71c8721fe24bdf52e7f9c83387e1161f57ce3b2d (patch) | |
tree | d82fe3aed1b93ce37a55cb847eccc7438b2cae91 /module/setup.py | |
parent | settings fix (diff) | |
download | pyload-71c8721fe24bdf52e7f9c83387e1161f57ce3b2d.tar.xz |
setup working
Diffstat (limited to 'module/setup.py')
-rw-r--r-- | module/setup.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/module/setup.py b/module/setup.py index 79bb51e22..93cde8a0d 100644 --- a/module/setup.py +++ b/module/setup.py @@ -201,12 +201,12 @@ class Setup(): print "" print _("The following logindata are only valid for CLI and GUI, but NOT for webinterface.") - self.config["remote"]["username"] = self.ask(_("Username"), "User") - self.config["remote"]["password"] = self.ask("", "", password=True) + self.config.username = self.ask(_("Username"), "User") + self.config.password = self.ask("", "", password=True) print "" self.config["general"]["language"] = self.ask(_("Language"), "en", ["en", "de", "fr", "nl", "pl"]) - self.config["general"]["download_Folder"] = self.ask(_("Downloadfolder"), "Downloads") + self.config["general"]["download_folder"] = self.ask(_("Downloadfolder"), "Downloads") self.config["general"]["max_downloads"] = self.ask(_("Max parallel downloads"), "3") print _("You should disable checksum proofing, if you have low hardware requirements.") self.config["general"]["checksum"] = self.ask(_("Proof checksum?"), "y", bool=True) @@ -221,7 +221,7 @@ class Setup(): print "" print _("## Webinterface Setup ##") - db_path = join(self.path, "module", "web", "pyload.db") + db_path = "pyload.db" is_db = isfile(db_path) db_setup = True @@ -280,8 +280,9 @@ class Setup(): translation.install(unicode=(True if sys.getfilesystemencoding().startswith("utf") else False)) print _("Setting new username and password") print "" - self.config["remote"]["username"] = self.ask(_("Username"), "User") - self.config["remote"]["password"] = self.ask("", "", password=True) + self.config.username = self.ask(_("Username"), "User") + self.config.password = self.ask("", "", password=True) + self.config.save() def print_dep(self, name, value): """Print Status of dependency""" |