From fb03c152237bebe5d0336e784ec6cbf7c9211d5a Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 13 Dec 2012 18:09:11 -0600 Subject: [PATCH] fixed paths in admin debug.py, thanks Mariano --- VERSION | 2 +- applications/admin/controllers/debug.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index b08d7ee6..da4874e5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.3.0 (2012-12-13 12:53:52) rc2 +Version 2.3.0 (2012-12-13 18:08:19) rc2 diff --git a/applications/admin/controllers/debug.py b/applications/admin/controllers/debug.py index 0b289420..f02b2866 100644 --- a/applications/admin/controllers/debug.py +++ b/applications/admin/controllers/debug.py @@ -176,6 +176,8 @@ def toggle_breakpoint(): try: filename = os.path.join(request.env['applications_parent'], 'applications', request.vars.filename) + # normalize path name: replace slashes, references, etc... + filename = os.path.normpath(os.path.normcase(filename)) if not request.vars.data: # ace send us the line number! lineno = int(request.vars.sel_start) + 1 @@ -192,6 +194,8 @@ def toggle_breakpoint(): if lineno is not None: for bp in qdb_debugger.do_list_breakpoint(): no, bp_filename, bp_lineno, temporary, enabled, hits, cond = bp + # normalize path name: replace slashes, references, etc... + bp_filename = os.path.normpath(os.path.normcase(bp_filename)) if filename == bp_filename and lineno == bp_lineno: err = qdb_debugger.do_clear_breakpoint(filename, lineno) response.flash = T("Removed Breakpoint on %s at line %s", (