Commit 7d6a7e33 authored by bos's avatar bos

Affichage des backtraces en option

darcs-hash:20070601135555-c992d-db43e8455e710dcb882afa958609bd3d61a77acb.gz
parent d294a22d
......@@ -45,6 +45,9 @@ parser.add_option("-p", "--port",
parser.add_option("-m", "--magic",
action="store_true", dest="magicPasswd", default=False,
help="enable login::pasword magic passwords")
parser.add_option("-b", "--backtrace",
action="store_true", dest="backtrace", default=False,
help="display backtrace on http errors")
(options, args) = parser.parse_args()
......@@ -71,7 +74,11 @@ else:
if (options.port):
settings={'global':{'server.socketPort':options.port}}
cherrypy.config.update(settings)
if (options.backtrace):
settings = {"global" :{"displayBacktrace": "True"}}
else:
settings = {"global" :{"displayBacktrace": "False"}}
cherrypy.config.update(settings)
# import du CransLdap qu'il va bien (on utilise CransLdap et non crans_ldap car on veut
# forcer l'ouverture d'une nouvelle connexion à chaque login)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment