modifié: m/fichier/conf

modifié:         m/loadConf.py
	nouveau fichier: m/log.py
	modifié:         m/login.py
	modifié:         superTornado.py
This commit is contained in:
sidya82
2014-03-02 22:57:48 +01:00
parent 70c0d27716
commit f1904ed512
5 changed files with 54 additions and 21 deletions

View File

@ -1,7 +1,6 @@
import time
import hashlib
import httplib
from datetime import datetime
class Login(object):
def verifLogin(self,pLog,pMdp):
@ -16,11 +15,6 @@ class Login(object):
source.close()
return False
def enregDansLog(self,pLog,pMsg,pIP):
with open("m/fichier/log", "a") as dest :
d = datetime.now().strftime("%c")
dest.write("%s,%s,%s,%s\n" % (d,pLog,pMsg,pIP))
def connexion(self,pLog,pMdp):
if self.verifLogin(pLog,pMdp) == True :
return True