Matt Good
14cd912df7
Fix style errors and add to automated checks
...
Adds a "stylecheck" to the Tox build config to automatically run flake8 checks.
Fixes existing flake8 issues.
2015-04-17 14:23:58 -07:00
Matt Good
6b2566c01f
Enable toolbar on HTML5 pages without </body> tag
...
Includes the toolbar on HTML5 pages without an explicit </body> tag by checking
for the HTML5 `<!doctype html>`.
Fixes #79
2015-04-17 12:56:10 -07:00
Matt Good
31ea3bce41
Merge branch 'body-warning'
2015-04-16 14:54:32 -07:00
Matt Good
2d60ea6c8d
Fix case-insensitive HTML insertion
...
Keeps the case-insensitive search for "</body>" and removes extra scan for the
tag by trying to insert the toolbar, and warning if unsuccessful.
2015-04-16 14:47:46 -07:00
Matt Good
5aaa7a6634
Merge branch 'routes'
2015-04-14 15:28:16 -07:00
Matt Good
10c03880c7
Safely decode non-ascii SQL queries for display
...
SQL queries containing non-ascii byte strings would cause errors, both with and
without Pygments highlighting.
This updates the non-Pygments case to handle a simple decoding to ensure the
value is ascii-safe. It also removes passing an explicit "utf-8" encoding to
Pygments, since this causes errors when the bytes are not utf-8. When the
encoding is omitted, Pygments will default to "guess" the encoding by trying
utf-8 and falling back to latin-1.
Fixes #55
2014-12-04 14:06:48 -08:00
Justin McKay
5084428c9d
Added the Route List panel to show the routes that are available within Flask.
2014-03-22 23:57:48 +11:00
Matt Good
82295aa4aa
printable filter should replace non-ascii bytes
...
In Python 2, when repr() returns bytes, replace any non-ascii bytes
with the unicode ? character to ensure that the result is printable.
Fixes #66
2014-02-02 14:46:41 -08:00
Ivan Ivaschenko
903ed85f00
remove coding:utf-8 and add some style fixes
2013-11-29 00:17:15 +02:00
Ivan Ivaschenko
5710314252
pep8 formatting + coding: utf8
2013-11-28 18:31:29 +02:00
Matt Good
bd37db9dc4
Fix SQLAlchemy URL registration
...
The init_app() restructuring in 356e6c removed "load_panels()", but need
to add it back so panels like SQLAlchemy can register their URLs on the
Blueprint before it's activated.
2013-11-06 09:33:00 -08:00
Matt Good
091c4fa70c
Compatibility fixes for Python 3
...
Fixes #54 (at least the basic stuff, this is still a bit experimental)
2013-11-06 09:06:05 -08:00
Matt Good
6d8249160d
Rename "settings" panel to "config"
2013-11-01 14:04:10 -07:00
Matt Good
9e3546b416
Merge commit 'refs/pull/51/head' of github.com:mgood/flask-debugtoolbar
...
Conflicts:
flask_debugtoolbar/toolbar.py
2013-11-01 11:41:08 -07:00
Matt Good
356e6c8268
Restructure to support init_app
...
Fixes #38
2013-07-30 17:37:34 -07:00
Matt Good
5870fce178
Can check blueprint name instead of URL prefix
2013-07-30 09:25:02 -07: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
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
18414d733b
Add a live template editor to the template panel
2012-05-18 16:32:03 -07:00
Rune Halvorsen
f6e37be73c
Issue a warning, rather than an exception, when toolbar can't be inserted
2012-03-10 19:36:57 +01:00
Rune Halvorsen
71bd15a4d6
Added an exception when debug toolbar can't be inserted due to missing markup
2012-02-29 01:44:17 +01: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
89fbe2e6b5
Let DEBUG_TB_ENABLED take precedence over app.debug
2012-01-31 11:02:30 -08:00
Joe Shaw
6f6b1cb47d
add DEBUG_TB_ENABLED setting which overrides app.debug check
2012-01-30 23:41:43 -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
ea45d9a185
Disable panels that cannot be imported.
...
Fixes #3
2012-01-02 13:33:25 -08:00
Matt Good
0e5fab9436
Restore calling process_view().
...
Puts back the monkey-patch of dispatch_request() with fixes for calling
self.foo() instead of app.foo() and uncommenting the process_view()
call.
2012-01-02 13:07:18 -08:00
Michael van Tellingen
60a9b4f6b0
Add a notice that the process_view() method is not called
2011-12-29 16:57:13 +01:00
Matt Good
528a7dfc83
Only process html responses
...
It tried to modify all responses, which added junk to the end of
non-html pages, and would cause errors trying to decode images as utf8.
2011-12-19 15:55:47 -08:00
Matt Good
0f64fdc715
Remove broken monkey-patch for dispatch_request
...
The code is just copied from Flask.dispatch_request.
There were a few references to "self" that should have been "app"
here, but it's not overriding anything now, so just take it out.
2011-12-19 15:53:53 -08:00
Matt Good
7d637cc489
Fix errors in process_response on static files
...
Need to use the real request object for the map,
not the context-local wrapper object. The context-local
wrapper is the same object, so it would call
process_response on every request regardless of the
_show_toolbar() result.
2011-12-16 13:53:06 -08:00
Matt Good
6d60a95653
Fix SQLAlchemy panel looking up the engine
2011-12-16 12:02:05 -08:00
Michael van Tellingen
1c594b9ba3
Attempt to fix the flask-debugtoolbar:
...
- Rename the package to flask_debugtoolbar
- Fix importing of the panels so that the views in the panels are correctly registered in the blueprint
There is still one major problem in the sqlalchemy panel where we are not able to get the SQLAlchemy reference
2011-10-17 21:27:51 +02:00