summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-01-20 16:32:46 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-01-20 16:32:46 +0100
commit5a86ecf805ad8a46dddd8caae9af67d0a78dcce2 (patch)
tree8aab683d938bd30289a69e65675df464f7bc776c
parentfixes for download scheduler #4 (diff)
downloadpyload-5a86ecf805ad8a46dddd8caae9af67d0a78dcce2.tar.xz
fixed py 2.5 incompatibility
-rw-r--r--pyload/setup/Setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/setup/Setup.py b/pyload/setup/Setup.py
index 1af9f0d1d..94e7dbd3b 100644
--- a/pyload/setup/Setup.py
+++ b/pyload/setup/Setup.py
@@ -267,7 +267,7 @@ class Setup():
password = self.ask("", "", password=True)
admin = self.ask("Admin?", self.yes, bool=True)
- self.db.addUser(username, password, Role.Admin if admin else Role.User, 0b1111111)
+ self.db.addUser(username, password, Role.Admin if admin else Role.User, int('1111111', 2))
elif action == "2":
print ""
print _("Users")
@@ -291,7 +291,7 @@ class Setup():
def addUser(self, username, password, role=Role.Admin):
self.openDB()
try:
- self.db.addUser(username, password, role, 0b1111111)
+ self.db.addUser(username, password, role, int('1111111', 2))
finally:
self.closeDB()