renommé: fichier/autorise -> m/fichier/autorise
renommé: fichier/conf -> m/fichier/conf renommé: fichier/log -> m/fichier/log renommé: loadConf.py -> m/loadConf.py renommé: login.py -> m/login.py modifié: superTornado.py renommé: illegal.html -> v/illegal.html renommé: images/iut.jpg -> v/images/iut.jpg renommé: index.html -> v/index.html renommé: js/jquery-2.1.0.min.js -> v/js/jquery-2.1.0.min.js renommé: style/styles.css -> v/style/styles.css renommé: video.html -> v/video.html
This commit is contained in:
16
m/loadConf.py
Normal file
16
m/loadConf.py
Normal file
@ -0,0 +1,16 @@
|
||||
class LoadConf(object):
|
||||
def loadHand(self):
|
||||
with open("fichier/conf", "r") as source :
|
||||
for ligne in source:
|
||||
data = ligne.rstrip('\n\r').split('=')
|
||||
if data[0] in 'handicap' :
|
||||
source.close()
|
||||
return data[1]
|
||||
source.close()
|
||||
return 0
|
||||
|
||||
def estAveugle(self):
|
||||
if self.loadHand() == "1" :
|
||||
return True
|
||||
else :
|
||||
return False
|
Reference in New Issue
Block a user