tests pour la rcupration de l'adresse ip
darcs-hash:20061122175632-f46e9-c3bd6bba12eb03a91f78a0b0a91b4b6fe82ee690.gz
This commit is contained in:
parent
a031a340a4
commit
9738ebb8ba
3 changed files with 11 additions and 5 deletions
|
@ -105,8 +105,10 @@ class Intranet:
|
|||
'stylesheets':['accueil.css'],
|
||||
}
|
||||
info.exposed = True
|
||||
|
||||
|
||||
|
||||
def test(self):
|
||||
return cherrypy.request.remote_addr
|
||||
test.exposed = True
|
||||
def _cp_on_http_error(self, status, message):
|
||||
if status==403:
|
||||
cherrypy.response.body = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue