summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2015-07-22 10:17:12 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2015-07-22 10:17:12 (GMT)
commit607290c2e0f7c556b4d8b25f93871ebf1df67f17 (patch)
tree2069bee3670846d796c8a940d89aa1c65f199638
parentf0d27a7f860fd09f1ec40f942b196beeb412c6d4 (diff)
downloadcmsplugin-blurp-607290c2e0f7c556b4d8b25f93871ebf1df67f17.zip
cmsplugin-blurp-607290c2e0f7c556b4d8b25f93871ebf1df67f17.tar.gz
cmsplugin-blurp-607290c2e0f7c556b4d8b25f93871ebf1df67f17.tar.bz2
data_source: in TemplateSourcesRenderer copy the source before updating url (fixes #7903)v1.11
-rw-r--r--src/cmsplugin_blurp/renderers/data_source.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmsplugin_blurp/renderers/data_source.py b/src/cmsplugin_blurp/renderers/data_source.py
index 5d1fb42..4d7a040 100644
--- a/src/cmsplugin_blurp/renderers/data_source.py
+++ b/src/cmsplugin_blurp/renderers/data_source.py
@@ -128,6 +128,7 @@ class TemplateSourcesRenderer(Renderer):
def get_sources(self, context):
for source in self.config['sources']:
slug = '{0}.{1}'.format(self.slug, source['slug'])
+ source = source.copy()
source['url'] = template.Template(source['url']).render(context)
result = source.get('default', {})
result['data'] = Data(slug, self.config, source, context)