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
71f57209a8
Fix MANIFEST.in references to old flaskext module
2011-12-16 16:32: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
0f06c07222
Update setup file
2011-10-17 21:36:25 +02: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
Ross Lawley
a5de4d65de
Merge remote branch 'an/develop'
...
Conflicts:
setup.py
2011-07-25 11:57:46 +01:00
Daniel Haaker
0a7d10f892
Apply flask-07-upgrade
2011-07-15 12:01:54 +02:00
Daniel Haaker
45e6a81014
Added missing 'flaskext.debugtoolbar.panels' package to setup.py (thanks jorgebastida)
2011-07-15 11:29:43 +02:00
Ross Lawley
8564d3860f
Merge remote branch 'upstream/master'
2011-05-17 10:23:02 +01:00
Michael
baecf852dd
Merge pull request #8 from sbook/nosqlalchemy
...
Remove SQLAlchemy as a dependency of flask-debugtoolbar.
2011-05-12 05:05:49 -07:00
Jorge Bastida
1b6c049e1e
Fix typo in setup.py
2011-05-12 12:55:11 +01:00
Jorge Bastida
46d87a0bbd
Added missing 'flaskext.debugtoolbar.panels' package to setup.py
2011-05-12 12:53:40 +01:00
Jorge Bastida
7dda475440
Fix the sqlalchemy panel template to use the new namespaced urls.
2011-05-12 11:50:19 +01:00
Jorge Bastida
caedff68ec
Remove SQLAlchemy as a dependency of flask-debugtoolbar.
...
Fixes issue #3
2011-05-12 11:36:49 +01:00
mvantellingen
fb11199f07
update version to 5.1dev
2011-03-14 13:29:25 +01:00
mvantellingen
b0b70d2197
Import the json module from flask (which tries to find the best available one)
2011-03-14 13:28:49 +01:00
mvantellingen
fbb99e985f
Set the correct content-length for the intercept redirect page.
2011-03-14 13:28:49 +01:00
Michael van Tellingen
f3ed36d1d0
Hopefully fix the packaging now
2011-02-24 21:56:18 +01:00
Michael van Tellingen
8c7692c385
Add sqlalchemy headers for the result sets
2011-02-24 21:55:52 +01:00
Michael van Tellingen
2105b2ae0c
Update version
2011-02-24 21:13:34 +01:00
Michael van Tellingen
469ed54369
Make the example work again
2011-02-24 21:12:07 +01:00
Michael van Tellingen
0f981a3d9a
Add the sqlalchemy 'select' subpanel
2011-02-24 21:11:57 +01:00
mvantellingen
47376ecf71
Check if SECRET_KEY is set
2011-02-13 23:02:24 +01:00
mvantellingen
0058a48ee2
First stab implementing the explain sql query. Based largely on the django debugtoolbar version
2011-02-13 22:48:08 +01:00
mvantellingen
9d060f95cd
Move format_sql to utils module
2011-02-13 22:46:48 +01:00
mvantellingen
b1a9f626b8
Fix bug in timer panel display
2011-02-13 21:23:00 +01:00
mvantellingen
c25819228b
Turn on autoescape in jinja
2011-02-13 21:22:50 +01:00
mvantellingen
7cb90a4207
Don't use signals to bind the toolbar instead use the app.before_request and app.after_request bindings
2011-02-13 21:22:36 +01:00
mvantellingen
52ee7dcef9
Handle pstats exceptions on the profiler display
2011-02-13 21:21:25 +01:00
mvantellingen
382c9b17fb
the format_fname function is moved to utils.py
2011-02-13 21:21:01 +01:00
mvantellingen
059e835b11
Use the util.format_fname function to format the logging location
2011-02-13 21:20:20 +01:00
mvantellingen
5eb0ddbc4e
Use the util.format_fname function to format the context location
2011-02-13 21:20:00 +01:00
mvantellingen
d7b98f9e77
Add a format_fname function which translates a absolute filename to a filename relative to the sys.path or relative to the project root
2011-02-13 21:19:15 +01:00
mvantellingen
d7056a63ea
Update version to 0.4.6dev
2011-02-06 23:14:56 +01:00
mvantellingen
e591b3c97a
Small improvement for the profiler.format_fname method to make it work on windows (hopefully).
2011-02-06 23:14:33 +01:00
mvantellingen
cee7783ff8
Refactor the code for collection the function call stats. Display the filename always as relative to the project or relative to a sys.path match
2011-02-06 23:03:11 +01:00
mvantellingen
2769777f33
Only display the toolbar when DEBUG = True
2011-02-06 23:02:08 +01:00
mvantellingen
8ca1410deb
Add docstrings
2011-02-06 23:01:51 +01:00
mvantellingen
9e17f76c3e
Trigger the Panel.process_view by monkey-patching the Flask.dispatch_request method. Use this for the profiling panel to make it threadsafe
2011-02-06 20:44:15 +01:00
mvantellingen
59c0b19387
Add the profiler panel based on the version of dcramer ( https://github.com/dcramer/django-debug-toolbar )
2011-02-06 17:03:39 +01:00
mvantellingen
371b061e40
is_active flag is a per-instance setting
2011-02-06 17:02:18 +01:00
mvantellingen
bcdfbc69ab
Don't try to show the panel on content from the debug toolbar itself.
2011-02-06 17:02:03 +01:00
mvantellingen
7eac83ac00
Place the dom_id of the panel on the toolbar li, and add '-content' to the content panel.
2011-02-06 17:01:25 +01:00
mvantellingen
77c31a7320
Add the ability for panels to be activated or de-activated via a client-side cookie. (For the next to implement profiling panel)
2011-02-06 16:01:36 +01:00
mvantellingen
e525b04848
Show all panels again in the example
2011-02-06 16:00:29 +01:00
mvantellingen
dacc8ad09c
Update version number and package data
2011-02-05 21:45:47 +01:00
mvantellingen
d68c4b55f1
Change forloop.last to loop.last (jinja2)
2011-02-05 21:44:04 +01:00
mvantellingen
9f6d611332
Update version and remove package_* config
2011-02-05 20:59:24 +01:00