Benjamin Dauvergne
cb8b7cd2f4
If data is cached and uptodate, do not use ajax rendering
2015-03-30 12:33:46 +02:00
Benjamin Dauvergne
3245869817
Add setting key to allow more HTTP status codes than 200
2015-03-30 12:33:45 +02:00
Frédéric Péters
3c7714a3d4
make it possible to treat blurp variables as iterables ( #6362 )
2015-01-27 22:56:14 +01:00
Frédéric Péters
a30c517956
fix check of signature_key type ( #6341 )
2015-01-27 15:40:53 +01:00
Frédéric Péters
0f44ca35f6
correctly remove hmac- prefix from algo ( #6342 )
2015-01-27 15:40:53 +01:00
Benjamin Dauvergne
defce175d0
Do no try to retrieve an OAuth2 token when there is no user
...
Closes #5900
2014-11-10 10:23:26 +01:00
Benjamin Dauvergne
c4c84f0c14
RequestException is a base class, log the instance
2014-11-07 10:43:35 +01:00
Benjamin Dauvergne
fbe7b87218
Fix debug output when updatecache parameter is not used in the query string
2014-11-04 11:32:44 +01:00
Benjamin Dauvergne
fd74d2f7c1
Add username to cache key in datasource renderer if OAuth2 is used
...
(fixes #5849 )
2014-11-03 23:06:22 +01:00
Benjamin Dauvergne
f96099ed48
In data_source renderer hide and log exceptions in update_content() ( fixes #5584 )
2014-09-25 14:56:05 +02:00
Benjamin Dauvergne
db31f6387d
Add more debug logs (refs #5586 )
2014-09-25 14:55:20 +02:00
Benjamin Dauvergne
a6419a4722
Fix bug breaking the cache ( fixes #5586 )
2014-09-25 14:55:20 +02:00
Benjamin Dauvergne
d73a37fb1d
renderers: add debug content to templates when DEBUG is True ( fixes #5092 )
...
The debug content for the data_source renderer is (using pseudo-template
code):
<!-- DEBUG:
config: {{ blurp.config|pprint }}
{% for each source %}
slug {{ source.slug }}: {% source.content|pprint %}
{% endfor %}
-->
The debug content is extracted from a template context variable named
'blurp_debug__' that any blurp renderer can set when DEBUG is True.
2014-09-08 11:43:35 +02:00
Benjamin Dauvergne
ba5d718042
Improve error reporting in data source renderer when TEMPLATE_DEBUG is True ( fixes #5092 )
...
This commit also normalize logging level to warning for non critical
errors.
2014-09-08 11:43:30 +02:00
Benjamin Dauvergne
170ef69a13
renderers/data_source: fix resolve_file_url return value ( fixes #5092 )
...
URL resolvers must return a stream and an error code.
2014-09-08 11:43:13 +02:00
Benjamin Dauvergne
0d6ab6fbbd
modify the signature of Renderer interface's render() method
2014-07-01 23:28:05 +02:00
Benjamin Dauvergne
b254eeb088
data_source: when doing an HTTP request also log the headers
2014-07-01 16:42:53 +02:00
Benjamin Dauvergne
18212be91c
data_source: fix check of configuration around signature_key
2014-07-01 15:46:44 +02:00
Benjamin Dauvergne
81ff6b8a9b
renderers/data_source: set default expiration for cache content to 52 weeks
2014-07-01 14:27:59 +02:00
Benjamin Dauvergne
324b33edcb
first commit
2014-07-01 12:28:46 +02:00