modifié: m/fichier/conf
modifié: m/loadConf.py modifié: superTornado.py
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
blind=1
|
||||
camera=192.168.1.13
|
||||
portCamera=80
|
||||
idCamera=test:a
|
||||
endUrlCamera=image.jpg?cidx=791836195
|
||||
serv=192.168.1.12
|
||||
portServ=80
|
||||
|
||||
|
@ -55,6 +55,22 @@ class LoadConf(object):
|
||||
def portServ(self) :
|
||||
return self.loadValue("portServ")
|
||||
|
||||
"""
|
||||
Return idCamera configuration
|
||||
Else "error"
|
||||
"""
|
||||
def idCamera(self) :
|
||||
return self.loadValue("idCamera")
|
||||
|
||||
"""
|
||||
Return endUrlCamera configuration
|
||||
Else "error"
|
||||
"""
|
||||
def endUrlCamera(self) :
|
||||
return self.loadValue("endUrlCamera")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class ConfigError(Exception):
|
||||
|
Reference in New Issue
Block a user