]> gitweb.pimeys.fr Git - NK2015_Client_Python_Alpha.git/blobdiff - client.py
Nouvelle version du login
[NK2015_Client_Python_Alpha.git] / client.py
index 9bff069d737620868d6b3416528d6cfc5c408573..75446e67dbac7502e473e8edd0b16df95317dfe4 100755 (executable)
--- a/client.py
+++ b/client.py
@@ -49,9 +49,9 @@ 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"]')
     else:
@@ -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\""
+