]> gitweb.pimeys.fr Git - NK2015_Client_Python_Alpha.git/blobdiff - client.py
Correction du login de toto (masque)
[NK2015_Client_Python_Alpha.git] / client.py
index 9bff069d737620868d6b3416528d6cfc5c408573..65b9d4163e917dcfb76523fec402fac2dc605ffc 100755 (executable)
--- a/client.py
+++ b/client.py
@@ -49,11 +49,11 @@ def hello(socket,version):
 
 def login(socket,user,mdp="",typ="bdd"):
     if user in ["20-100","moibdd"]:
-        a.write('login ["20-100","plop","bdd"]')
+        a.write('login ["20-100","plop","bdd",[["all"],["all"],true]]')
     elif user in ["vincent","moi"]:
-        a.write('login ["vincent","plop","special"]')
+        a.write('login ["vincent","plop","special",["all"]]')
     elif user in ["toto"]:
-        a.write('login ["toto","plop","bdd"]')
+        a.write('login ["toto","plop","bdd",[["all"],["all"],true]]')
     else:
         a.write('login ["%s","%s","%s"]'%(user,mdp,typ))
     return lit(a)
@@ -100,5 +100,6 @@ if __name__=="__main__":
     a.settimeout(2)
     #checkidentity(a)
     print hello(a,"Python Client alpha")
-    print login(a,"20-100","mdp")
+    print login(a,"20-100","plop")
     print "Socket créée dans la variable \"a\""
+