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
|
@ -106,7 +106,9 @@ class Intranet:
|
||||||
}
|
}
|
||||||
info.exposed = True
|
info.exposed = True
|
||||||
|
|
||||||
|
def test(self):
|
||||||
|
return cherrypy.request.remote_addr
|
||||||
|
test.exposed = True
|
||||||
def _cp_on_http_error(self, status, message):
|
def _cp_on_http_error(self, status, message):
|
||||||
if status==403:
|
if status==403:
|
||||||
cherrypy.response.body = {
|
cherrypy.response.body = {
|
||||||
|
|
|
@ -20,5 +20,9 @@ logDebugInfoFilter.on = False
|
||||||
paypal.businessAdress = "gdetrez-buisness@crans.org"
|
paypal.businessAdress = "gdetrez-buisness@crans.org"
|
||||||
paypal.useSandbox = True
|
paypal.useSandbox = True
|
||||||
|
|
||||||
|
#
|
||||||
|
[/test]
|
||||||
|
crans.droits = "Nounous"
|
||||||
|
|
||||||
[/static]
|
[/static]
|
||||||
staticFilter.dir = "/home/gdetrez/crans.usr.scripts/intranet/static/"
|
staticFilter.dir = "/home/gdetrez/crans.usr.scripts/intranet/static/"
|
||||||
|
|
|
@ -16,6 +16,6 @@ server.show_tracebacks= False
|
||||||
server.log_config_options= False
|
server.log_config_options= False
|
||||||
logDebugInfoFilter.on = False
|
logDebugInfoFilter.on = False
|
||||||
|
|
||||||
#base_url_filter.on = True
|
base_url_filter.on = True
|
||||||
#base_url_filter.base_url = "https://intranet2.crans.org/"
|
base_url_filter.base_url = "https://intranet.crans.org/"
|
||||||
#base_url_filter.use_x_forwarded_host = True
|
base_url_filter.use_x_forwarded_host = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue