Commit Graph

37 Commits

Author SHA1 Message Date
Serghei Mihai 7376062ac5 version 1.0.7 2014-11-06 09:19:20 +01:00
Serghei Mihai dfd17e4fd4 jsonify template tag added
Closes #5866
2014-11-05 09:33:01 +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
Serghei Mihai 7040ba8900 README fixes 2014-10-23 16:14:39 +02: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
Serghei Mihai 3ec77339bd rolling back priority to 'template_name' attribute 2014-09-09 11:07:18 +02:00
Serghei Mihai c7fd750388 handling properly cases when no template defined 2014-09-08 18:19:04 +02:00
Serghei Mihai 6cbd4d70b3 missing exception imported 2014-09-08 17:23:27 +02:00
Benjamin Dauvergne bb7c7a0e8a In AJAX view return 404 on absent plugin (fixes #5092)
When the view fails, stop polling if status is 404, otherwise continue
polling but use an exponential backoff between retries.
2014-09-08 11:43:54 +02:00
Benjamin Dauvergne 85bd25bf34 Do not traceback when rendering a blurp (fixes #5092)
If DEBUG is True, report exception in result string.
2014-09-08 11:43:52 +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
Serghei Mihai e4aca152c8 don't use CMS, loaded only for admin, variable on ajaxified plugin
Closes #5273
2014-08-19 16:06:25 +02:00
Benjamin Dauvergne fe4463b14f bump release to 1.0.6 2014-07-04 11:03:42 +02:00
Benjamin Dauvergne 742d41a929 models: do not try to import but check if cms is in INSTALLED_APPS
fix commit ae4e5cb8e
2014-07-04 11:03:03 +02:00
Benjamin Dauvergne a3d2ddbdb9 bump release to 1.0.5 2014-07-04 10:54:14 +02:00
Benjamin Dauvergne ae4e5cb8e2 models: allow loading of cmsplugin_blurb without django-cms 2014-07-04 10:53:52 +02:00
Benjamin Dauvergne 0cf75c6266 bump release to 1.0.4 2014-07-04 10:31:16 +02:00
Benjamin Dauvergne d1a7fdad23 add missing file 2014-07-04 10:30:47 +02:00
Benjamin Dauvergne df232a7c20 README: describe the async options of the data_source renderer 2014-07-02 13:01:34 +02:00
Benjamin Dauvergne 4b468104b7 bump release to 1.0.3 2014-07-02 10:34:54 +02:00
Benjamin Dauvergne d6b960f0e1 README: document the blurp block tag 2014-07-02 10:34:17 +02:00
Benjamin Dauvergne fce84e9251 templatetags: add block tag to insert blurp variables into the current context
This does not work with ajax blurp for now, you will only get
synchronous loading.
2014-07-02 09:58:17 +02:00
Benjamin Dauvergne 0d6ab6fbbd modify the signature of Renderer interface's render() method 2014-07-01 23:28:05 +02:00
Benjamin Dauvergne 455a162057 README: add documentation about the template tag 2014-07-01 16:49:39 +02:00
Benjamin Dauvergne 169c3ed842 bump release to 1.0.2 2014-07-01 16:43:57 +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 8a59512d08 templatetags: add template tag to render a blurp block in a template
Blurp blocks doing things with placholders or cms-plugin instances will
not work.
2014-07-01 16:42:53 +02:00
Benjamin Dauvergne 1c326dc72b setup.py: add requirement on django and django-cms 2014-07-01 16:35:34 +02:00
Benjamin Dauvergne 18212be91c data_source: fix check of configuration around signature_key 2014-07-01 15:46:44 +02:00
Benjamin Dauvergne d7d8162e35 bump release to 1.0.1 2014-07-01 14:29:08 +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