ajout d'une page d'information pour donner les mots de passes
darcs-hash:20060816215504-f46e9-de3ccc52e71f018e3d2f4f4c7f78221c538a83e7.gz
This commit is contained in:
parent
45f4a3292f
commit
313b900b85
2 changed files with 254 additions and 242 deletions
|
@ -167,6 +167,14 @@ class Intranet:
|
||||||
}
|
}
|
||||||
index.exposed= True
|
index.exposed= True
|
||||||
|
|
||||||
|
def info(self):
|
||||||
|
return {
|
||||||
|
'template':'info-diverses',
|
||||||
|
'values':{}
|
||||||
|
}
|
||||||
|
info.exposed = True
|
||||||
|
|
||||||
|
'''
|
||||||
def nounous(self):
|
def nounous(self):
|
||||||
return "coucou"
|
return "coucou"
|
||||||
nounous.exposed= True
|
nounous.exposed= True
|
||||||
|
@ -178,7 +186,7 @@ class Intranet:
|
||||||
def environment(self):
|
def environment(self):
|
||||||
return cherrypy.config.configMap["global"]["server.environment"]
|
return cherrypy.config.configMap["global"]["server.environment"]
|
||||||
environment.exposed = True
|
environment.exposed = True
|
||||||
|
'''
|
||||||
|
|
||||||
|
|
||||||
# ######################################################## #
|
# ######################################################## #
|
||||||
|
@ -224,8 +232,8 @@ def verifLogin(login = '', password = ''):
|
||||||
#
|
#
|
||||||
# mise en place de cherrypy + conf
|
# mise en place de cherrypy + conf
|
||||||
#
|
#
|
||||||
#cherrypy.config.update(file="/home/gdetrez/intranet/dev.cfg")
|
cherrypy.config.update(file="/home/gdetrez/intranet/dev.cfg")
|
||||||
cherrypy.config.update(file="/home/gdetrez/intranet/prod.cfg")
|
#cherrypy.config.update(file="/home/gdetrez/intranet/prod.cfg")
|
||||||
cherrypy.config.update(file="/home/gdetrez/intranet/intranet.cfg")
|
cherrypy.config.update(file="/home/gdetrez/intranet/intranet.cfg")
|
||||||
settings={'/': {
|
settings={'/': {
|
||||||
'sessionAuthenticateFilter.checkLoginAndPassword': verifLogin,
|
'sessionAuthenticateFilter.checkLoginAndPassword': verifLogin,
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
<img src="/static/images/icon_factures.png" alt="icon" />
|
<img src="/static/images/icon_factures.png" alt="icon" />
|
||||||
<span>Mes Factures</span>
|
<span>Mes Factures</span>
|
||||||
</a></li>
|
</a></li>
|
||||||
|
<li><a href="/info">
|
||||||
|
<img src="/static/images/icon_info.png" alt="icon" />
|
||||||
|
<span>Infos</span>
|
||||||
|
</a></li>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<div class="visualClear"></div>
|
<div class="visualClear"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue