10 Commits

Author SHA1 Message Date
Matt Good
72e8e277af Bump version to 0.6.3.1 to re-release with changelog info 2012-04-16 13:25:25 -07:00
Matt Good
75bac4e961 Add changelog info for 0.6.3 2012-04-16 13:21:25 -07:00
Matt Good
f84087156a Prepare 0.6.3 release 2012-04-16 13:15:26 -07: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
Matt Good
7e8a8e280e Merge pull request #18 from mattoufoutu/master
display context variables values in the "templates" panel
2012-02-23 09:23:22 -08: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
12 changed files with 49 additions and 32 deletions

View File

@@ -1,6 +1,19 @@
Changes
=======
0.6.3.1 (2012-04-16)
------------------
New release to add missing changelog for 0.6.3
0.6.3 (2012-04-16)
------------------
Fixes:
- Compatibility with Flask-SQLAlchemy 0.16 package name
0.6.2 (2012-02-18)
------------------

View File

@@ -1,7 +1,7 @@
import hashlib
try:
from flaskext.sqlalchemy import get_debug_queries, SQLAlchemy
from flask.ext.sqlalchemy import get_debug_queries, SQLAlchemy
except ImportError:
sqlalchemy_available = False
get_debug_queries = SQLAlchemy = None

View File

@@ -7,7 +7,7 @@
</thead>
<tbody>
{% for key, value in headers.iteritems() %}
<tr class="{{ loop.cycle('djDebugOdd' 'djDebugEven') }}">
<tr class="{{ loop.cycle('flDebugOdd', 'flDebugEven') }}">
<td>{{ key|escape }}</td>
<td>{{ value|escape }}</td>
</tr>

View File

@@ -10,7 +10,7 @@
</thead>
<tbody>
{% for record in records %}
<tr class="{{ loop.cycle('fjDebugOdd' 'fjDebugEven') }}">
<tr class="{{ loop.cycle('flDebugOdd', 'flDebugEven') }}">
<td>{{ record.level }}</td>
<td>{{ record.time }}</td>
<td>{{ record.message }}</td>

View File

@@ -11,7 +11,7 @@
</thead>
<tbody>
{% for row in function_calls %}
<tr class="{{ loop.cycle('flDebugOdd' 'flDebugEven') }}">
<tr class="{{ loop.cycle('flDebugOdd', 'flDebugEven') }}">
<td>{{ row.ncalls }}</td>
<td>{{ row.tottime }}</td>
<td>{{ '%.4f'|format(row.percall) }}</td>

View File

@@ -39,7 +39,7 @@
</thead>
<tbody>
{% for key, value in map %}
<tr class="{{ loop.cycle('flDebugOdd' 'flDebugEven') }}">
<tr class="{{ loop.cycle('flDebugOdd', 'flDebugEven') }}">
<td>{{ key|printable }}</td>
<td>{{ value|printable }}</td>
</tr>
@@ -74,7 +74,7 @@
</thead>
<tbody>
{% for key, value in map %}
<tr class="{{ loop.cycle('flDebugOdd' 'flDebugEven') }}">
<tr class="{{ loop.cycle('flDebugOdd', 'flDebugEven') }}">
<td>{{ key|printable }}</td>
<td>
{%- set sep = joiner() -%}

View File

@@ -9,7 +9,7 @@
</thead>
<tbody>
{% for query in queries %}
<tr class="{{ loop.cycle('flDebugOdd' 'flDebugEven') }}">
<tr class="{{ loop.cycle('flDebugOdd', 'flDebugEven') }}">
<td>{{ '%.4f'|format(query.duration) }}</td>
<td>
{% if query.params %}
@@ -26,7 +26,7 @@
{{ query.context }}
</td>
<td class="syntax">
<div class="djDebugSqlWrap">
<div class="flDebugSqlWrap">
<div class="flDebugSql">{{ query.sql|safe }}</div>
{#
{% if query.stacktrace %}

View File

@@ -10,7 +10,7 @@
<dt>Time</dt>
<dd>{{ '%.4f'|format(duration) }} ms</dd>
</dl>
<table class="djSqlExplain">
<table class="flSqlExplain">
<thead>
<tr>
{% for h in headers %}
@@ -20,7 +20,7 @@
</thead>
<tbody>
{% for row in result %}
<tr class="{{ loop.cycle('fjDebugOdd' 'fjDebugEven') }}">
<tr class="{{ loop.cycle('fjDebugOdd', 'fjDebugEven') }}">
{% for column in row %}
<td>{{ column }}</td>
{% endfor %}

View File

@@ -21,7 +21,7 @@
</thead>
<tbody>
{% for row in result %}
<tr class="{{ loop.cycle('fjDebugOdd' 'fjDebugEven') }}">
<tr class="{{ loop.cycle('flDebugOdd', 'flDebugEven') }}">
{% for column in row %}
<td>{{ column }}</td>
{% endfor %}

View File

@@ -1,22 +1,23 @@
{% if templates %}
<table>
<thead>
<tr>
<th>Filename</th>
<th>Context vars</th>
</tr>
</thead>
<tbody>
{% for template in templates %}
<tr class="{{ loop.cycle('fjDebugOdd' 'fjDebugEven') }}">
<td>{{ template.template.name }}</td>
<td>{{ template.context.keys()|join(', ') }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% for template in templates %}
<h4>{{ template.template.name }}</h4>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
{% for k, v in template.context|dictsort %}
<tr class="{{ loop.cycle('flDebugOdd', 'flDebugEven') }}">
<td>{{ k }}</td>
<td>{{ v|printable }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
{% else %}
<p>No templates rendered.</p>
<p>No template rendered</p>
{% endif %}

View File

@@ -1,3 +1,5 @@
import urllib
from flask import url_for, current_app
@@ -52,7 +54,8 @@ class DebugToolbar(object):
"""
Populate debug panels
"""
activated = self.request.cookies.get('fldt_active', '').split(';')
activated = self.request.cookies.get('fldt_active', '')
activated = urllib.unquote(activated).split(';')
for panel_class in self.panel_classes:
panel_instance = panel_class(

View File

@@ -14,7 +14,7 @@ except:
setup(
name='Flask-DebugToolbar',
version='0.6.2',
version='0.6.3.1',
url='http://github.com/mgood/flask-debugtoolbar',
license='BSD',
author='Michael van Tellingen',