From 17c35b5c420e6ed57251dae1abfe081bc8a8b44f Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Tue, 8 May 2012 22:26:27 +0200 Subject: [PATCH] cafouillage sur les masque special/bdd au login --- basile.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/basile.py b/basile.py index 17a861c..f92fe67 100755 --- a/basile.py +++ b/basile.py @@ -178,9 +178,13 @@ def connect_NK(): def login_NK(username,password,typ="bdd"): sock=connect_NK() + if typ=="special": # ça c'est pour Basile lui-même + masque='["note"]' + elif typ=="bdd": + masque='[["all"],["all"],false]' try: # Basile a un compte special user - commande='login [%s,%s,"%s",["note"]]'%(json.dumps(username),json.dumps(password),typ) + commande='login [%s,%s,"%s",%s]'%(json.dumps(username),json.dumps(password),typ,masque) sock.write(commande) out=sock.read() except Exception as exc: -- 2.39.2