Renamed TALES extension
authorThierry Florac <thierry.florac@onf.fr>
Mon, 09 Jul 2018 13:39:46 +0200
changeset 79 f1075e608d30
parent 78 2f9f4c3cd4e8
child 80 9563247eb2f1
Renamed TALES extension
src/pyams_default_theme/component/gallery/templates/renderer-default.pt
src/pyams_default_theme/component/illustration/templates/illustration-default.pt
src/pyams_default_theme/component/illustration/templates/illustration-left.pt
src/pyams_default_theme/component/illustration/templates/illustration-right.pt
src/pyams_default_theme/component/keynumber/portlet/templates/horizontal-render.pt
src/pyams_default_theme/component/keynumber/portlet/templates/vertical-render.pt
src/pyams_default_theme/component/paragraph/templates/contact-default.pt
src/pyams_default_theme/component/paragraph/templates/header-default.pt
src/pyams_default_theme/component/paragraph/templates/html-default.pt
src/pyams_default_theme/component/paragraph/templates/verbatim-default.pt
src/pyams_default_theme/component/paragraph/templates/verbatim-left.pt
src/pyams_default_theme/component/paragraph/templates/verbatim-right.pt
src/pyams_default_theme/component/paragraph/templates/video-default.pt
src/pyams_default_theme/component/video/templates/video-default.pt
src/pyams_default_theme/shared/imagemap/templates/imagemap-default.pt
src/pyams_default_theme/shared/imagemap/templates/render.pt
src/pyams_default_theme/shared/logo/templates/logos-default.pt
src/pyams_default_theme/shared/view/portlet/templates/view-items-list.pt
src/pyams_default_theme/templates/layout.pt
src/pyams_default_theme/templates/preview-layout.pt
src/pyams_default_theme/viewlet/banner/templates/banner.pt
src/pyams_default_theme/viewlet/logo/templates/logo.pt
--- a/src/pyams_default_theme/component/gallery/templates/renderer-default.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/gallery/templates/renderer-default.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -1,7 +1,7 @@
 <div i18n:domain="pyams_content">
 	<tal:loop repeat="image context.get_visible_medias()">
 		<picture tal:define="image_data i18n:image.data;
-							 image_url extension:absolute_url(image_data);
+							 image_url tales:absolute_url(image_data);
 							 base_width 100 / 12;
 							 width 12;">
 			<source media="(min-width: 1200px)"
--- a/src/pyams_default_theme/component/illustration/templates/illustration-default.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/illustration/templates/illustration-default.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -1,5 +1,5 @@
 <div class="text-center margin-y-5">
-	<picture tal:define="image_url extension:absolute_url(view.data);
+	<picture tal:define="image_url tales:absolute_url(view.data);
 						 base_width 100 / 12;
 						 width 12;">
 		<source media="(min-width: 1200px)"
--- a/src/pyams_default_theme/component/illustration/templates/illustration-left.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/illustration/templates/illustration-left.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -2,11 +2,11 @@
 	<a class="fancybox" data-toggle
 	   data-ams-fancybox-type="image"
 	   tal:omit-tag="not:view.settings.zoom_on_click"
-	   tal:define="thumbnails extension:thumbnails(view.data);
+	   tal:define="thumbnails tales:thumbnails(view.data);
 				   target thumbnails.get_thumbnail('800x600');
 				   thumb thumbnails.get_thumbnail('300x200');"
-	   tal:attributes="href extension:absolute_url(target)">
-		<img tal:attributes="src extension:absolute_url(thumb);
+	   tal:attributes="href tales:absolute_url(target)">
+		<img tal:attributes="src tales:absolute_url(thumb);
 							 alt view.alt_title;" /><br />
 		<span tal:content="view.title">legend</span>
 	</a><br />
--- a/src/pyams_default_theme/component/illustration/templates/illustration-right.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/illustration/templates/illustration-right.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -2,11 +2,11 @@
 	<a class="fancybox" data-toggle
 	   data-ams-fancybox-type="image"
 	   tal:omit-tag="not:view.settings.zoom_on_click"
-	   tal:define="thumbnails extension:thumbnails(view.data);
+	   tal:define="thumbnails tales:thumbnails(view.data);
 				   target thumbnails.get_thumbnail('800x600');
 				   thumb thumbnails.get_thumbnail('300x200');"
-	   tal:attributes="href extension:absolute_url(target)">
-		<img tal:attributes="src extension:absolute_url(thumb);
+	   tal:attributes="href tales:absolute_url(target)">
+		<img tal:attributes="src tales:absolute_url(thumb);
 							 alt view.alt_title" /><br />
 		<span tal:content="view.title">legend</span>
 	</a><br />
--- a/src/pyams_default_theme/component/keynumber/portlet/templates/horizontal-render.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/keynumber/portlet/templates/horizontal-render.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -3,7 +3,7 @@
 			tal:condition="title">
 		<tal:var content="title"/><br /></strong>
 	<div tal:define="teaser i18n:settings.teaser"
-		 tal:content="structure extension:html(teaser)">Teaser</div>
+		 tal:content="structure tales:html(teaser)">Teaser</div>
 	<ul>
 		<li tal:repeat="number settings.keynumbers.get_visible_items()">
 			<span tal:define="label i18n:number.label"
--- a/src/pyams_default_theme/component/keynumber/portlet/templates/vertical-render.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/keynumber/portlet/templates/vertical-render.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -3,7 +3,7 @@
 			tal:condition="title">
 		<tal:var content="title"/><br /></strong>
 	<div tal:define="teaser i18n:settings.teaser"
-		 tal:content="structure extension:html(teaser)">Teaser</div>
+		 tal:content="structure tales:html(teaser)">Teaser</div>
 	<ul>
 		<li tal:repeat="number settings.keynumbers.get_visible_items()">
 			<span tal:define="label i18n:number.label"
--- a/src/pyams_default_theme/component/paragraph/templates/contact-default.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/contact-default.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -3,7 +3,7 @@
 	<h3 tal:content="view.title">Contact title</h3>
 	<div tal:condition="settings.can_display_photo"
 		 tal:attributes="class string:thumbnail photo pull-${settings.photo_position}">
-		<img tal:attributes="src extension:absolute_url(view.photo, '++thumb++w128')" />
+		<img tal:attributes="src tales:absolute_url(view.photo, '++thumb++w128')" />
 	</div>
 	<div tal:condition="settings.can_display_map"
 		 tal:attributes="class string:map pull-${settings.map_position}">
--- a/src/pyams_default_theme/component/paragraph/templates/header-default.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/header-default.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -1,2 +1,2 @@
 <div class="strong margin-bottom-10"
-	 tal:content="structure extension:html(view.header)">header</div>
+	 tal:content="structure tales:html(view.header)">header</div>
--- a/src/pyams_default_theme/component/paragraph/templates/html-default.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/html-default.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -1,3 +1,3 @@
 <h3 tal:content="view.title">title</h3>
-<div tal:content="structure extension:html(view.body, 'oid_to_href')">body</div>
+<div tal:content="structure tales:html(view.body, 'oid_to_href')">body</div>
 <tal:var content="structure view.render_illustration()">Illustration</tal:var>
--- a/src/pyams_default_theme/component/paragraph/templates/verbatim-default.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/verbatim-default.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -10,11 +10,11 @@
 			<span tal:content="view.charge">Charge</span>
 		</div>
 		<div class="quote col-md-5"
-			 tal:content="extension:html(view.quote)">Quote</div>
+			 tal:content="tales:html(view.quote)">Quote</div>
 	</tal:if>
 	<tal:if condition="not:display_illustration">
 		<div class="quote"
-			 tal:content="extension:html(view.quote)">Quote</div>
+			 tal:content="tales:html(view.quote)">Quote</div>
 		<div class="author">
 			<span tal:content="view.author">Author</span>
 			<tal:if condition="view.charge">&ndash;</tal:if>
--- a/src/pyams_default_theme/component/paragraph/templates/verbatim-left.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/verbatim-left.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -6,7 +6,7 @@
 		 tal:replace="structure view.illustration_renderer.render() if view.illustration_renderer is not None else None">
 	</div>
 	<div class="quote"
-		 tal:content="structure extension:html(view.quote)">Quote</div>
+		 tal:content="structure tales:html(view.quote)">Quote</div>
 	<div class="author">
 		<span tal:content="view.author">Author</span>
 		<tal:if condition="view.charge">
--- a/src/pyams_default_theme/component/paragraph/templates/verbatim-right.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/verbatim-right.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -6,7 +6,7 @@
 		 tal:replace="structure view.illustration_renderer.render() if view.illustration_renderer is not None else None">
 	</div>
 	<div class="quote"
-		 tal:content="structure extension:html(view.quote)">Quote</div>
+		 tal:content="structure tales:html(view.quote)">Quote</div>
 	<div class="author">
 		<span tal:content="view.author">Author</span>
 		<tal:if condition="view.charge">
--- a/src/pyams_default_theme/component/paragraph/templates/video-default.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/video-default.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -1,29 +1,29 @@
 <h3 tal:condition="view.title"
 	tal:content="view.title">title</h3>
 <div tal:condition="view.description"
-	 tal:content="structure extension:html(view.description)">Description</div>
+	 tal:content="structure tales:html(view.description)">Description</div>
 <div class="flowplayer"
 	 data-ams-plugins="flowplayer"
 	 data-ams-plugin-flowplayer-async="false"
 	 data-ams-callback="PyAMS_media.initPlayer"
 	 tal:condition="view.data"
-	 tal:attributes="data-ams-plugin-flowplayer-src extension:resource_path('pyams_media.skin:flowplayer');
-					 data-ams-plugin-flowplayer-css extension:resource_path('pyams_media.skin:functional_css');
-					 data-ams-callback-source extension:resource_path('pyams_media.skin:pyams_media');">
+	 tal:attributes="data-ams-plugin-flowplayer-src tales:resource_path('pyams_media.skin:flowplayer');
+					 data-ams-plugin-flowplayer-css tales:resource_path('pyams_media.skin:functional_css');
+					 data-ams-callback-source tales:resource_path('pyams_media.skin:pyams_media');">
 	<video
 		tal:define="video view.data;
-					href extension:absolute_url(video);
-					thumbnails extension:thumbnails(video);
-					conversions extension:conversions(video);
+					href tales:absolute_url(video);
+					thumbnails tales:thumbnails(video);
+					conversions tales:conversions(video);
 					size thumbnails.get_image_size();"
 		tal:attributes="poster string:${href}/++thumb++${size[0]}x${size[1]}.png">
 		<tal:loop repeat="conversion conversions.get_conversions(order=('video/webm','video/mp4','video/x-flv'))">
 			<source type="video/mp4"
 					tal:define="media_width conversions.get_conversion_width(conversion.__name__);
-								video_type extension:video_type(conversion);"
+								video_type tales:video_type(conversion);"
 					tal:condition="video_type"
 					tal:attributes="type video_type;
-									src extension:absolute_url(conversion);
+									src tales:absolute_url(conversion);
 									media 'all and (max-width: {0}px)'.format(media_width) if media_width else None;" />
 		</tal:loop>
 	</video>
--- a/src/pyams_default_theme/component/video/templates/video-default.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/component/video/templates/video-default.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -1,5 +1,5 @@
 <h3 tal:condition="view.title"
 	tal:content="view.title">title</h3>
 <div tal:condition="view.description"
-	 tal:content="structure extension:html(view.description)">Description</div>
+	 tal:content="structure tales:html(view.description)">Description</div>
 <tal:var replace="structure view.render_video()" />
--- a/src/pyams_default_theme/shared/imagemap/templates/imagemap-default.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/shared/imagemap/templates/imagemap-default.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -2,10 +2,10 @@
 <div class="no-padding" i18n:domain="pyams_content"
 	 data-ams-plugins="pyams_content"
 	 tal:define="imagemap context.get_target()"
-	 tal:attributes="data-ams-plugin-pyams_content-src extension:resource_path('pyams_content.skin:pyams_content')">
+	 tal:attributes="data-ams-plugin-pyams_content-src tales:resource_path('pyams_content.skin:pyams_content')">
 	<img usemap="#imagemap_preview"
 		 tal:define="image i18n:imagemap.image"
-		 tal:attributes="src extension:absolute_url(image);
+		 tal:attributes="src tales:absolute_url(image);
 						 usemap string:#imagemap_preview_${context.__name__}"
 		 data-ams-callback="PyAMS_content.imgmap.initPreview" />
 	<map name="imagemap_preview"
--- a/src/pyams_default_theme/shared/imagemap/templates/render.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/shared/imagemap/templates/render.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -3,7 +3,7 @@
 	<div>
 		<img usemap="#imagemap_preview"
 			 tal:define="image i18n:context.image"
-			 tal:attributes="src extension:absolute_url(image);" />
+			 tal:attributes="src tales:absolute_url(image);" />
 		<map name="imagemap_preview">
 			<tal:loop repeat="area context.areas.values()">
 				<tal:var define="item context.get_association(area)"
--- a/src/pyams_default_theme/shared/logo/templates/logos-default.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/shared/logo/templates/logos-default.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -4,7 +4,7 @@
 		<tal:if condition="logo is not None">
 			<a tal:omit-tag="not:logo.url"
 			   tal:attributes="href logo.url" target="_blank">
-				<tal:var content="structure extension:thumbnail(logo.image, 200, 'auto', 'display-inline margin-10')" />
+				<tal:var content="structure tales:thumbnail(logo.image, 200, 'auto', 'display-inline margin-10')" />
 			</a>
 		</tal:if>
 	</tal:loop>
--- a/src/pyams_default_theme/shared/view/portlet/templates/view-items-list.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/shared/view/portlet/templates/view-items-list.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -1,6 +1,6 @@
 <ul>
 	<li tal:repeat="item view.settings.get_items(request)">
-		<a tal:attributes="href extension:relative_url(item)"
+		<a tal:attributes="href tales:relative_url(item)"
 		   tal:content="i18n:item.title">Title</a>
 	</li>
 </ul>
--- a/src/pyams_default_theme/templates/layout.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/templates/layout.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -1,19 +1,19 @@
 <!DOCTYPE html>
 <html lang="en" i18n:domain="pyams_default_theme"
-	  tal:define="config extension:configuration;"
+	  tal:define="config tales:configuration;"
 	  tal:attributes="lang request.locale_name">
 <head prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article#">
-	<tal:var replace="structure extension:metas" />
+	<tal:var replace="structure tales:metas" />
 
-	<tal:if define="icon config.icon | nothing; url extension:absolute_url(icon);" condition="icon">
+	<tal:if define="icon config.icon | nothing; url tales:absolute_url(icon);" condition="icon">
 		<!-- Favorite icon -->
 		<link rel="shortcut icon" tal:attributes="href url" type="image/x-icon">
 		<link rel="icon" tal:attributes="href url" type="image/x-icon">
 	</tal:if>
 
-	<link rel="canonical" tal:attributes="href extension:canonical_url(context)" />
+	<link rel="canonical" tal:attributes="href tales:canonical_url(context)" />
 
-	<tal:var replace="extension:resources" />
+	<tal:var replace="tales:resources" />
 
 	<!-- Javascript extensions -->
 	<tal:var content="structure provider:pyams.jsextensions" />
--- a/src/pyams_default_theme/templates/preview-layout.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/templates/preview-layout.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -1,20 +1,20 @@
 <!DOCTYPE html>
 <html class="no-js" lang="en" i18n:domain="pyams_default_theme"
-	  tal:define="config extension:configuration;
+	  tal:define="config tales:configuration;
 				  anonymous request.principal.id == '__none__';"
 	  tal:attributes="lang request.locale_name">
 <head>
-	<tal:var replace="structure extension:metas" />
+	<tal:var replace="structure tales:metas" />
 
-	<tal:if define="icon config.icon | nothing; url extension:absolute_url(icon);" condition="icon">
+	<tal:if define="icon config.icon | nothing; url tales:absolute_url(icon);" condition="icon">
 		<!-- Favorite icon -->
 		<link rel="shortcut icon" tal:attributes="href url" type="image/x-icon">
 		<link rel="icon" tal:attributes="href url" type="image/x-icon">
 	</tal:if>
 
-	<link rel="canonical" tal:attributes="href extension:canonical_url(context)" />
+	<link rel="canonical" tal:attributes="href tales:canonical_url(context)" />
 
-	<tal:var replace="extension:resources" />
+	<tal:var replace="tales:resources" />
 
 	<!-- Javascript extensions -->
 	<tal:var content="structure provider:pyams.jsextensions" />
--- a/src/pyams_default_theme/viewlet/banner/templates/banner.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/viewlet/banner/templates/banner.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -5,7 +5,7 @@
 		<div class="regularbanner__bg">
 			<img alt="" class="regularbanner__media"
 				 tal:define="image settings.banner"
-				 tal:attributes="src extension:absolute_url(image, '++thumb++w1320')" />
+				 tal:attributes="src tales:absolute_url(image, '++thumb++w1320')" />
 		</div>  <!-- /.regularbanner__bg -->
 		<tal:var content="structure provider:pyams.logo" />
 	</div>  <!-- /.regularbanner -->
--- a/src/pyams_default_theme/viewlet/logo/templates/logo.pt	Mon Jul 09 11:54:19 2018 +0200
+++ b/src/pyams_default_theme/viewlet/logo/templates/logo.pt	Mon Jul 09 13:39:46 2018 +0200
@@ -4,8 +4,8 @@
 			condition="logo">
 		<a href="/" title="Back home" i18n:attributes="title">
 			<img class="logo"
-				 tal:define="src extension:absolute_url(settings.logo, '++thumb++200x200')"
-				 tal:attributes="src string:${src}?_=${extension:timestamp(logo)}" />
+				 tal:define="src tales:absolute_url(settings.logo, '++thumb++200x200')"
+				 tal:attributes="src string:${src}?_=${tales:timestamp(logo)}" />
 		</a>
 	</tal:if>
-</tal:var>
\ No newline at end of file
+</tal:var>