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 = {
|
||||
|
|
|
@ -20,5 +20,9 @@ logDebugInfoFilter.on = False
|
|||
paypal.businessAdress = "gdetrez-buisness@crans.org"
|
||||
paypal.useSandbox = True
|
||||
|
||||
#
|
||||
[/test]
|
||||
crans.droits = "Nounous"
|
||||
|
||||
[/static]
|
||||
staticFilter.dir = "/home/gdetrez/crans.usr.scripts/intranet/static/"
|
||||
|
|
|
@ -16,6 +16,6 @@ server.show_tracebacks= False
|
|||
server.log_config_options= False
|
||||
logDebugInfoFilter.on = False
|
||||
|
||||
#base_url_filter.on = True
|
||||
#base_url_filter.base_url = "https://intranet2.crans.org/"
|
||||
#base_url_filter.use_x_forwarded_host = True
|
||||
base_url_filter.on = True
|
||||
base_url_filter.base_url = "https://intranet.crans.org/"
|
||||
base_url_filter.use_x_forwarded_host = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue