Affichage des backtraces en option
darcs-hash:20070601135555-c992d-db43e8455e710dcb882afa958609bd3d61a77acb.gz
This commit is contained in:
parent
d294a22d41
commit
7d6a7e337b
1 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue