Commit Graph

59 Commits

Author SHA1 Message Date
Matt Good
2f18ac90f9 Convert versions template to 2 spaces for indentation 2015-04-14 19:20:29 -07:00
Matt Good
612f93c129 Show relative paths for package paths
Since most of the paths are the same, only display the path relative to the
main Python library path.
2015-04-14 19:18:45 -07:00
Lucas Taylor
ccd8ba66b2 Display installed packages and versions in Versions panel (requires setup tools) 2013-03-27 17:28:51 -07:00
Lucas Taylor
093763909f Display installed packages and versions in Versions panel (requires Yolk) 2013-03-27 17:16:28 -07:00
Matt Good
b7c39113e7 Template editor should use Jinja loader's encoding
The template loader wouldn't handle non-ASCII template encodings.
Updated it to use the encoding parameter of the Jinja loader when
reading and writing the template files.

Fixes #46
2013-03-08 09:00:10 -08:00
Matt Good
3bea63dc8a Fix werkzeug request logging with the log panel
Werkzeug will disable its default logging setup if another log handler
is already configured.  At some point the initialization order changed
and the logging panel's handler is getting added first now, so
werkzeug's request log will not be printed to the console by default. By
explicitly calling werkzeug's logger we now make sure it's initialized
before the logging panel's handler.

Fixes #33
2013-02-21 10:53:16 -08:00
Matt Good
856eb52a95 Nice error message for un-repr-able objects
The "printable" filter can throw an exception when trying to display a
user object whose __repr__ implementation returns unicode, which repr()
does not allow. Catch it and display a more informative message
instead.

See #31 and #39
2013-02-20 20:46:31 -08:00
Matt Good
50017f13a7 Switch to itsdangerous for SQL query signing
Fixing #31 where the query signing would break when the SECRET_KEY
contained non-ascii values. In the process switch to itsdangerous
instead of rolling our own signatures.
2013-02-20 20:02:00 -08:00
Matt Good
561889738f Merge pull request #41 from crosspop/ajaxfix
Intercept redirect only if it’s not XHR (Ajax)
2013-02-19 17:01:11 -08:00
Nicholas Bollweg
0f923475c8 adding reference to noConflict'ed jQuery 2013-02-13 12:29:45 -05:00
Hong Minhee
43df69ab24 Intercept redirect only if it's not XHR (Ajax)
Intercept redirect can't really help debugging at all
if requests are XHR (Ajax), because browsers just don't render
their response by default.
2013-01-17 05:11:26 +09:00
Matt Good
3e4cd1ecfa Merge pull request #35 from rconradharris/patch-1
Profiler: Use update_wrapper on partial

If the profiler panel is applied before the request-vars panel, the wrapper added by the profiler causes an error since it's missing a `__module__` attribute.
2012-09-25 10:43:19 -07:00
Matt Good
cfa5984d3e Convert SQLAlchemy query duration to ms to match the label
The SQLAlchemy panel labels the query duration column "(ms)" but the
times from Flask-SQLAlchemy are given in seconds.

Fixes #36
2012-09-25 09:45:52 -07:00
Rick Harris
c9c0228a62 Profiler: Use update_wrapper on partial
The `update_wrapper` call is needed so that the new partial
func inherits the `__module__` of the original function.

The `__module__` is needed because the request-vars panel uses
`func.__module__` in building the qualified name.
2012-09-04 19:45:51 -05:00
Matt Good
80eb747816 Release 0.7.1 to fix the in-place loading of the template editor 2012-05-18 18:20:28 -07:00
Matt Good
c7b0b4bf2b Merge remote-tracking branch 'evoloshchuk/enable_profiler_panel' into enable_profiler_panel 2012-05-18 17:18:25 -07:00
Matt Good
18414d733b Add a live template editor to the template panel 2012-05-18 16:32:03 -07:00
Matt Good
97fc95f769 Merge branch 'profile-sorter' 2012-04-17 08:33:26 -07:00
Matt Good
484575eb66 Make striped table rows work with table sorter 2012-04-17 08:33:06 -07:00
Matt Good
e34c10d15b Simplifying CSS resets 2012-04-17 08:05:16 -07:00
Matt Good
025a7bebb6 Use spaces for indentation in CSS/JS 2012-04-17 08:04:05 -07:00
Ievgen Voloshchuk
b7a67a0486 Didn't find the original problem, seem to work fine. 2012-04-17 10:13:16 +02:00
Ievgen Voloshchuk
addfb343b0 let's use tabs if all file use them 2012-04-17 09:54:40 +02:00
Ievgen Voloshchuk
11cb1daadf css selector corrections 2012-04-17 09:53:16 +02:00
Andrii Mishkovskyi
ddeaa2b958 Correctly try to sort all the tables possible 2012-04-17 09:50:42 +02:00
Ievgen Voloshchuk
9c1d859cfd Make profiler results sortable 2012-04-17 09:50:20 +02:00
Ievgen Voloshchuk
d927012d75 Add configuration parameter to enable profiler by default 2012-04-17 09:49:05 +02:00
Matt Good
56be56de86 Fix import for Flask-SQLAlchemy 0.16
Use the "flask.ext" import for compatibility with old and new versions
2012-04-16 13:12:26 -07:00
Mathieu D. (MatToufoutu)
672fdb59e6 remove unused outer_loop variable 2012-02-23 18:15:16 +01:00
Mathieu D. (MatToufoutu)
b5a6fbe839 use dictsort instead of items() to display variables alphabetically ordered 2012-02-23 18:14:02 +01:00
Mathieu D. (MatToufoutu)
824f73d9aa minor fixes in the templates 2012-02-23 14:40:02 +01:00
Mathieu D. (MatToufoutu)
d8d2fb7a85 display context variable values in the templates panel 2012-02-23 14:33:42 +01:00
Matt Good
8a922a2a5c Cookie for list of "active" panels needs decoded before splitting 2012-02-20 14:14:53 -08:00
Matt Good
002dea199e Simplify jQuery.noConflict mode to fix #16 2012-02-18 14:18:41 -08:00
Matt Good
20a302c3b4 Fix request vars display for non-string values (fixes #14) 2012-02-15 12:28:28 -08:00
Matt Good
bdbc570c91 Fix memory leak from holding reference to toolbar (fixes #10) 2012-02-14 23:56:36 -08:00
Matt Good
a48efe822a Escape non-printable values in request vars panel (fixes #9) 2012-02-14 18:51:21 -08:00
Matt Good
45ce65c058 Merge branch 'mono-fonts' 2012-01-31 11:03:38 -08:00
Matt Good
89fbe2e6b5 Let DEBUG_TB_ENABLED take precedence over app.debug 2012-01-31 11:02:30 -08:00
Matt Good
e5feff5884 Merge pull request #7 from joeshaw/joeshaw-enabled-setting
add DEBUG_TB_ENABLED setting which overrides app.debug check
2012-01-31 10:59:32 -08:00
Matt Good
93008a8e53 Make table bodies use mono-spaced font 2012-01-31 10:52:55 -08:00
Matt Good
8bb829e1e4 Make font reset easier to override 2012-01-31 10:25:17 -08:00
Joe Shaw
6f6b1cb47d add DEBUG_TB_ENABLED setting which overrides app.debug check 2012-01-30 23:41:43 -05:00
Kenneth Reitz
d85ce273af squash all the PNGs 2012-01-30 20:42:00 -05:00
Kenneth Reitz
69d137c2d7 new django flask icon 2012-01-30 20:41:50 -05:00
Matt Good
1c8465cdd9 Minor style update (trailing whitespace and "if len()") 2012-01-04 08:49:25 -08:00
Matt Good
f59705a7e7 Merge commit 'd886f5a606f26d78df457e7041c5666e0e5bbc6d' 2012-01-04 08:42:21 -08:00
Matt Good
114385af4c Remove hard dependency on simplejson
simplejson is only needed for the SQLAlchemy panel on Python < 2.6
Also, provides a nice error message in the SQLAlchemy panel about
missing dependencies.
2012-01-03 11:07:50 -08:00
Matt Good
3d9faa52af Fix missing log output from development server.
Initialize the logging panel log handler on the first request so that
werkzeug sets up its default logger first.  Werkzeug now only adds its
default log handler if no others are set up yet.  So, when the logging
panel set up its logger first, it suppressed the output from the
development server.
2012-01-03 11:07:10 -08:00
Matt Good
b0e37e6981 Fix showing session data on Request Vars panel 2012-01-02 13:53:02 -08:00