diff --git a/VERSION b/VERSION index 009d60ba..8a735101 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.1-alpha.2+timestamp.2012.12.26.11.43.58 +Version 2.4.1-alpha.2+timestamp.2012.12.26.11.54.07 diff --git a/applications/admin/static/js/ajax_editor.js b/applications/admin/static/js/ajax_editor.js index df1465fa..b24b2fd0 100644 --- a/applications/admin/static/js/ajax_editor.js +++ b/applications/admin/static/js/ajax_editor.js @@ -180,9 +180,16 @@ function doToggleBreakpoint(filename, url) { if (json.error) { window.location.href=json.redirect; } else { - // mark the breakpoint if ok=True - // remove mark if ok=False - // do nothing if ok = null + if (json.ok==true && window.mirror) { + // mark the breakpoint if ok=True + editor.setMarker(json.lineno-1, + "● %N%") + } else if (json.ok==false && window.mirror) { + // remove mark if ok=False + editor.setMarker(json.lineno-1, "%N%") + } else { + // do nothing if ok = null + } // alert(json.ok + json.lineno); } } catch(e) { on_error(); } diff --git a/applications/admin/views/debug/breakpoints.html b/applications/admin/views/debug/breakpoints.html index 511b3724..557f0bab 100644 --- a/applications/admin/views/debug/breakpoints.html +++ b/applications/admin/views/debug/breakpoints.html @@ -1,114 +1,137 @@ {{extend 'layout.html'}} - {{block sectionclass}}debug{{end}} - - - - - -
{{=CODE('\n'.join([x[1] for x in sorted(lines.items(),key=lambda x: x[0])]),
+ language='python', link=None, counter=min(lines.keys()),
+ highlight_line=lineno, context_lines=10)}}