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
|
||||
|
||||
def info(self):
|
||||
return {
|
||||
'template':'info-diverses',
|
||||
'values':{}
|
||||
}
|
||||
info.exposed = True
|
||||
|
||||
'''
|
||||
def nounous(self):
|
||||
return "coucou"
|
||||
nounous.exposed= True
|
||||
|
@ -178,7 +186,7 @@ class Intranet:
|
|||
def environment(self):
|
||||
return cherrypy.config.configMap["global"]["server.environment"]
|
||||
environment.exposed = True
|
||||
|
||||
'''
|
||||
|
||||
|
||||
# ######################################################## #
|
||||
|
@ -224,8 +232,8 @@ def verifLogin(login = '', password = ''):
|
|||
#
|
||||
# mise en place de cherrypy + conf
|
||||
#
|
||||
#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/dev.cfg")
|
||||
#cherrypy.config.update(file="/home/gdetrez/intranet/prod.cfg")
|
||||
cherrypy.config.update(file="/home/gdetrez/intranet/intranet.cfg")
|
||||
settings={'/': {
|
||||
'sessionAuthenticateFilter.checkLoginAndPassword': verifLogin,
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
<img src="/static/images/icon_factures.png" alt="icon" />
|
||||
<span>Mes Factures</span>
|
||||
</a></li>
|
||||
<li><a href="/info">
|
||||
<img src="/static/images/icon_info.png" alt="icon" />
|
||||
<span>Infos</span>
|
||||
</a></li>
|
||||
</fieldset>
|
||||
<div class="visualClear"></div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue