Renamed TALES extension
authorThierry Florac <thierry.florac@onf.fr>
Mon, 09 Jul 2018 13:39:20 +0200
changeset 815 5be2aa7fc4e0
parent 814 f5b6878378a2
child 816 7d0eda828276
Renamed TALES extension
src/pyams_content/component/gallery/zmi/templates/gallery-medias.pt
src/pyams_content/component/illustration/zmi/templates/illustration-thumbnail.pt
src/pyams_content/component/keynumber/portlet/zmi/templates/keynumber-preview.pt
src/pyams_content/component/theme/zmi/templates/themes-info.pt
src/pyams_content/features/preview/zmi/templates/preview.pt
src/pyams_content/features/renderer/zmi/templates/renderer-input.pt
src/pyams_content/features/review/zmi/templates/review-add-comment.pt
src/pyams_content/features/review/zmi/templates/review-comments-json.pt
src/pyams_content/features/review/zmi/templates/review-comments.pt
src/pyams_content/features/review/zmi/templates/review-notification.pt
src/pyams_content/reference/pictograms/zmi/templates/manager-selection.pt
src/pyams_content/reference/pictograms/zmi/templates/pictogram-header.pt
src/pyams_content/root/zmi/templates/advanced-search.pt
src/pyams_content/shared/common/zmi/templates/advanced-search.pt
src/pyams_content/shared/common/zmi/templates/check-input.pt
src/pyams_content/shared/common/zmi/templates/header.pt
src/pyams_content/shared/common/zmi/templates/preview-input.pt
src/pyams_content/shared/imagemap/zmi/templates/imagemap-preview.pt
src/pyams_content/shared/imagemap/zmi/templates/widget-input.pt
src/pyams_content/shared/site/zmi/widget/templates/folders-input.pt
--- a/src/pyams_content/component/gallery/zmi/templates/gallery-medias.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/component/gallery/zmi/templates/gallery-medias.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -1,7 +1,7 @@
 <div class="form-group" i18n:domain="pyams_content"
 	 data-ams-plugins="pyams_content"
 	 tal:define="gallery_images context.values()"
-	 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');
 					 id string:gallery_medias_${context.__name__};"
 	 data-ams-plugin-pyams_content-async="false">
 	<fieldset class="margin-top-10 padding-top-5 padding-bottom-0">
@@ -13,7 +13,7 @@
 		<div class="btn-group pull-right"
 			 tal:condition="gallery_images">
 			<a class="btn btn-xs btn-primary"
-			   tal:attributes="href extension:absolute_url(context, 'get-medias.zip')"
+			   tal:attributes="href tales:absolute_url(context, 'get-medias.zip')"
 			   i18n:translate="">Download medias</a>
 		</div>
 		<div class="pull-left persistent">
@@ -21,7 +21,7 @@
 		</div>
 		<div class="clearfix"></div>
 		<div class="sortable fancybox gallery"
-			 tal:attributes="data-ams-location extension:absolute_url(context);
+			 tal:attributes="data-ams-location tales:absolute_url(context);
 							 class '{0} fancybox gallery'.format('sortable' if request.has_permission(view.permission) else '');"
 			 data-ams-sortable-stop="PyAMS_content.galleries.setOrder"
 			 data-ams-sortable-helper="clone"
@@ -33,7 +33,7 @@
 				 class="media margin-5 margin-bottom-10 radius-4 padding-5 pull-left text-center"
 				 style="position: relative;"
 				 tal:attributes="data-ams-element-name media.__name__">
-				<tal:var define="thumbnails extension:thumbnails(media.data);">
+				<tal:var define="thumbnails tales:thumbnails(media.data);">
 					<tal:if condition="thumbnails">
 						<tal:if condition="media.data.content_type.startswith('image/')">
 							<a class="fancyimg hint" data-toggle
@@ -41,7 +41,7 @@
 							   title="Zoom image" i18n:attributes="title"
 							   tal:define="target thumbnails.get_thumbnail('800x600')"
 							   tal:attributes="class 'fancyimg hint {0}'.format('not-visible' if not media.visible else '');
-											   href extension:absolute_url(target);
+											   href tales:absolute_url(target);
 											   rel string:gallery_${context.__name__};">
 								<img class="thumbnail"
 									 data-ams-hint-gravity="s"
@@ -50,7 +50,7 @@
 												 margin_left 64 - image_size[0] / 2;
 												 margin_top 64 - image_size[1] / 2;
 												 title i18n:media.title;"
-									 tal:attributes="src extension:absolute_url(thumbnail);
+									 tal:attributes="src tales:absolute_url(thumbnail);
 													 id 'media_{0}_{1}'.format(context.__name__, media.__name__);
 													 original-title title or '--';
 													 style string:margin-left: ${margin_left}px;; margin-right: ${margin_left}px;; margin-top: ${margin_top}px;; margin-bottom: ${margin_top}px;;" />
@@ -67,7 +67,7 @@
 							   tal:attributes="href target" data-toggle="modal">
 								<img class="thumbnail no-border"
 									 data-ams-hint-gravity="s"
-									 tal:attributes="src extension:absolute_url(thumbnail);
+									 tal:attributes="src tales:absolute_url(thumbnail);
 													 id 'media_{0}_{1}'.format(context.__name__, media.__name__);
 													 original-title title or '--';
 													 style string:margin-left: ${margin_left}px;; margin-right: ${margin_left}px;; margin-top: ${margin_top}px;; margin-bottom: ${margin_top}px;;" />
@@ -81,7 +81,7 @@
 					</tal:if>
 				</tal:var>
 				<div class="btn-group margin-top-10"
-					 tal:define="actions extension:context_actions(media);">
+					 tal:define="actions tales:context_actions(media);">
 					<tal:loop repeat="viewlet actions.viewlets"
 							  content="structure viewlet.render()" />
 				</div>
--- a/src/pyams_content/component/illustration/zmi/templates/illustration-thumbnail.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/component/illustration/zmi/templates/illustration-thumbnail.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -1,4 +1,4 @@
 <tal:var i18n:domain="pyams_content">
 	<img tal:define="illustration i18n:view.illustration.data"
-		 tal:attributes="src extension:absolute_url(illustration, '++thumb++128x24.png')" />
+		 tal:attributes="src tales:absolute_url(illustration, '++thumb++128x24.png')" />
 </tal:var>
--- a/src/pyams_content/component/keynumber/portlet/zmi/templates/keynumber-preview.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/component/keynumber/portlet/zmi/templates/keynumber-preview.pt	Mon Jul 09 13:39:20 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_content/component/theme/zmi/templates/themes-info.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/component/theme/zmi/templates/themes-info.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -22,7 +22,7 @@
 							  accept view.accept;
 							  autocomplete view.autocomplete;
 							  class view.css_class;
-							  data-ams-data extension:object_data(view);
+							  data-ams-data tales:object_data(view);
 							  data-ams-form-handler view.get_ajax_handler() | nothing;
 							  data-ams-form-options view.get_form_options() | nothing;
 							  data-ams-form-submit-target view.form_target | nothing;
--- a/src/pyams_content/features/preview/zmi/templates/preview.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/features/preview/zmi/templates/preview.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -13,7 +13,7 @@
 					<i class="fa fa-fw fa-times-circle"></i>
 				</button>
 				<h3 class="modal-title"
-					tal:define="config extension:configuration;">
+					tal:define="config tales:configuration;">
 					<span class="title" tal:content="structure view.title | context.title | config.title">Title</span>
 				</h3>
 				<tal:var replace="structure provider:form_toolbar" />
@@ -24,7 +24,7 @@
 				<tal:if condition="len(langs) == 1">
 					<div class="margin-top-10">
 						<iframe src="preview.html" frameborder="0" style="width: 100%;"
-								tal:define="url extension:absolute_url(context, 'preview.html')"
+								tal:define="url tales:absolute_url(context, 'preview.html')"
 								tal:attributes="src string:${url}?lang=${langs[0]}"
 								onload="this.style.height = (jQuery(parent.window).height() - 150) + 'px'"></iframe>
 					</div>
@@ -35,7 +35,7 @@
 							<li tal:define="active python:'active' if repeat['lang'].start() else ''"
 								tal:attributes="class string:small ${active}">
 								<a data-toggle="tab" class="xsmall"
-								   tal:define="url extension:absolute_url(context, 'preview.html')"
+								   tal:define="url tales:absolute_url(context, 'preview.html')"
 								   tal:attributes="href string:#preview-${lang}">
 									<img tal:attributes="src string:/--static--/pyams_i18n/img/flags/${lang}.png" />
 								</a>
@@ -48,7 +48,7 @@
 								 tal:attributes="class string:clearfix tab-pane ${active} fade in padding-5;
 												 id string:preview-${lang};">
 								<iframe src="preview.html" frameborder="0" style="width: 100%;"
-										tal:define="url extension:absolute_url(context, 'preview.html')"
+										tal:define="url tales:absolute_url(context, 'preview.html')"
 										tal:attributes="src string:${url}?lang=${lang}"
 										onload="this.style.height = (jQuery(parent.window).height() - 150) + 'px'"></iframe>
 							</div>
--- a/src/pyams_content/features/renderer/zmi/templates/renderer-input.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/features/renderer/zmi/templates/renderer-input.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -4,7 +4,7 @@
 			title="Edit renderer properties" i18n:attributes="title"
 			data-ams-hint-gravity="se" data-toggle="modal"
 			tal:condition="render"
-			tal:attributes="data-ams-url extension:absolute_url(context, 'renderer-properties.html');"></i>
+			tal:attributes="data-ams-url tales:absolute_url(context, 'renderer-properties.html');"></i>
 		<i class="icon-append fa fa-fw fa-pencil-square-o opacity-25"
 			tal:condition="not:render"></i>
 	</tal:var>
@@ -33,7 +33,7 @@
 								onchange view/onchange;
 								multiple view/multiple;
 								size view/size;
-								data-ams-data extension:object_data(view);'>
+								data-ams-data tales:object_data(view);'>
 			<option tal:repeat="entry view/items"
 					tal:attributes="value entry/value;
 									selected python:entry['value'] in view.value;"
--- a/src/pyams_content/features/review/zmi/templates/review-add-comment.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/features/review/zmi/templates/review-add-comment.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -2,7 +2,7 @@
 	tal:attributes="class 'message {0}'.format(comment.comment_type)">
 	<tal:var define="avatar options['profile'].avatar">
 		<tal:if condition="avatar">
-			<img tal:attributes="src extension:absolute_url(avatar, '++thumb++square:32x32.png')" />
+			<img tal:attributes="src tales:absolute_url(avatar, '++thumb++square:32x32.png')" />
 		</tal:if>
 		<tal:if condition="not:avatar">
 			<i class="fa fa-lg fa-user img"></i>
@@ -21,7 +21,7 @@
 				</tal:if>
 				<time class="margin-left-10" i18n:translate="">just now</time>
 			</a>
-			<tal:var content="structure extension:html(comment.comment)" />
+			<tal:var content="structure tales:html(comment.comment)" />
 		</span>
 	</tal:var>
 </li>
--- a/src/pyams_content/features/review/zmi/templates/review-comments-json.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/features/review/zmi/templates/review-comments-json.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -3,7 +3,7 @@
 	<tal:var define="principal view.get_principal(comment.owner);
 					 avatar view.get_avatar(principal);">
 		<tal:if condition="avatar">
-			<img tal:attributes="src extension:absolute_url(avatar, '++thumb++square:32x32.png')" />
+			<img tal:attributes="src tales:absolute_url(avatar, '++thumb++square:32x32.png')" />
 		</tal:if>
 		<tal:if condition="not:avatar">
 			<i class="fa fa-lg fa-user img"></i>
@@ -30,7 +30,7 @@
 					  i18n:translate="">Selected reviewers:</span>&nbsp;
 				<tal:var content="comment.reviewers" /><br />
 			</div>
-			<tal:var content="structure extension:html(comment.comment)" />
+			<tal:var content="structure tales:html(comment.comment)" />
 		</span>
 	</tal:var>
 </li>
--- a/src/pyams_content/features/review/zmi/templates/review-comments.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/features/review/zmi/templates/review-comments.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -1,7 +1,7 @@
 <div class="ams-widget comments" i18n:domain="pyams_content"
 	 data-ams-plugins="pyams_content"
-	 tal:attributes="data-ams-plugin-pyams_content-src extension:resource_path('pyams_content.skin:pyams_content');
-					 data-ams-plugin-pyams_content-css extension:resource_path('pyams_content.skin:pyams_content_css');"
+	 tal:attributes="data-ams-plugin-pyams_content-src tales:resource_path('pyams_content.skin:pyams_content');
+					 data-ams-plugin-pyams_content-css tales:resource_path('pyams_content.skin:pyams_content_css');"
 	 data-ams-plugin-pyams_content-async="false"
 	 data-ams-callback="PyAMS_content.review.initComments">
 	<header>
@@ -20,7 +20,7 @@
 					<tal:var define="principal view.get_principal(comment.owner);
 									 avatar view.get_avatar(principal);">
 						<tal:if condition="avatar">
-							<img tal:attributes="src extension:absolute_url(avatar, '++thumb++square:32x32.png')" />
+							<img tal:attributes="src tales:absolute_url(avatar, '++thumb++square:32x32.png')" />
 						</tal:if>
 						<tal:if condition="not:avatar">
 							<i class="fa fa-lg fa-user img"></i>
@@ -47,7 +47,7 @@
 									  i18n:translate="">Selected reviewers:</span>&nbsp;
 								<tal:var content="comment.reviewers" />
 							</div>
-							<tal:var content="structure extension:html(comment.comment)" />
+							<tal:var content="structure tales:html(comment.comment)" />
 						</span>
 					</tal:var>
 				</li>
@@ -56,7 +56,7 @@
 		<div class="chat-footer no-padding">
 			<form method="post" data-async
 				  data-ams-form-data-init-callback="PyAMS_content.review.initCommentData"
-				  tal:attributes="data-ams-form-handler extension:absolute_url(context, 'add-review-comment.json')">
+				  tal:attributes="data-ams-form-handler tales:absolute_url(context, 'add-review-comment.json')">
 				<fieldset class="textarea-div no-margin">
 					<div class="btn btn-xs btn-success margin-left-10 margin-top-5"
 						 data-ams-url="PyAMS_content.review.addCommentAction">
--- a/src/pyams_content/features/review/zmi/templates/review-notification.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/features/review/zmi/templates/review-notification.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -39,7 +39,7 @@
 	</p>
 	<pre style="padding: 5px 20px;" tal:content="options['comment']">comment</pre>
 	<p i18n:translate="">To review and comment this publication, please use the following link: <a i18n:name="target"
-			tal:attributes="href extension:absolute_url(context, 'admin')"
+			tal:attributes="href tales:absolute_url(context, 'admin')"
 			tal:content="i18n:context.title"></a>.</p>
 	<p i18n:translate="">After reading this content, please use the « Comments » menu entry.</p>
 	<p i18n:translate="">If you don't want to reply to this request, please contact
--- a/src/pyams_content/reference/pictograms/zmi/templates/manager-selection.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/reference/pictograms/zmi/templates/manager-selection.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -1,8 +1,8 @@
 <div class="pictograms-manager" i18n:domain="pyams_content"
 	 data-ams-plugins="pyams_content"
 	 data-ams-plugin-pyams_content-async="false"
-	 tal:attributes="data-ams-plugin-pyams_content-src extension:resource_path('pyams_content.skin:pyams_content');
-					 data-ams-plugin-pyams_content-css extension:resource_path('pyams_content.skin:pyams_content_css');">
+	 tal:attributes="data-ams-plugin-pyams_content-src tales:resource_path('pyams_content.skin:pyams_content');
+					 data-ams-plugin-pyams_content-css tales:resource_path('pyams_content.skin:pyams_content_css');">
 	<fieldset class="bordered margin-x-20 col-md-5">
 		<legend class="inner" i18n:translate="">Available pictograms</legend>
 		<div class="droppable sortable height-min-100 pictograms available-pictograms viewport-y viewport-500"
@@ -15,7 +15,7 @@
 					   tal:attributes="value pictogram.__name__" />
 				<div class="pull-right margin-right-5">
 					<a data-toggle="modal"
-					   tal:attributes="data-ams-url extension:absolute_url(pictogram, 'properties.html')">
+					   tal:attributes="data-ams-url tales:absolute_url(pictogram, 'properties.html')">
 						<i class="fa fa-fw fa-search hint opaque baseline"
 						   data-ams-hint-gravity="se" data-ams-hint-offset="3"
 						   title="Display pictogram properties" i18n:attributes="title"></i>
@@ -24,7 +24,7 @@
 				<div class="width-50 text-center pull-left margin-right-10">
 					<tal:var define="img i18n:pictogram.image"
 							 condition="img"
-							 content="structure extension:thumbnail(img, 48, 48)" />
+							 content="structure tales:thumbnail(img, 48, 48)" />
 				</div>
 				<span tal:content="i18n:pictogram.title">Title</span>
 			</div>
@@ -42,7 +42,7 @@
 					   tal:attributes="value pictogram.__name__" />
 				<div class="pull-right margin-right-5">
 					<a data-toggle="modal"
-					   tal:attributes="data-ams-url extension:absolute_url(pictogram, 'properties.html')">
+					   tal:attributes="data-ams-url tales:absolute_url(pictogram, 'properties.html')">
 						<i class="fa fa-fw fa-search hint opaque baseline"
 						   data-ams-hint-gravity="se" data-ams-hint-offset="3"
 						   title="Display pictogram properties" i18n:attributes="title"></i>
@@ -51,7 +51,7 @@
 				<div class="width-50 text-center pull-left margin-right-10">
 					<tal:var define="img i18n:pictogram.image"
 							 condition="img"
-							 content="structure extension:thumbnail(img, 48, 48)" />
+							 content="structure tales:thumbnail(img, 48, 48)" />
 				</div>
 				<span tal:content="i18n:pictogram.title">Title</span>
 			</div>
--- a/src/pyams_content/reference/pictograms/zmi/templates/pictogram-header.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/reference/pictograms/zmi/templates/pictogram-header.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -1,7 +1,7 @@
 <div class="padding-5" i18n:domain="pyams_content">
 	<tal:var define="image i18n:context.image"
 			 condition="image"
-			 content="structure extension:thumbnail(image, 32, 32)" />
+			 content="structure tales:thumbnail(image, 32, 32)" />
 	<span class="padding-left-5" tal:define="header i18n:context.header"
 		  i18n:translate="">Default header:
 		<strong i18n:name="header" tal:content="header or '--'" />
--- a/src/pyams_content/root/zmi/templates/advanced-search.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/root/zmi/templates/advanced-search.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -22,7 +22,7 @@
 							  accept view.accept;
 							  autocomplete view.autocomplete;
 							  class view.css_class;
-							  data-ams-data extension:object_data(view);
+							  data-ams-data tales:object_data(view);
 							  data-ams-form-handler view.get_ajax_handler() | nothing;
 							  data-ams-form-options view.get_form_options() | nothing;
 							  data-ams-form-submit-target view.form_target | nothing;
@@ -75,7 +75,7 @@
 								<div class="col-md-9">
 									<label class="input"
 										   tal:attributes="class widget.widget_css_class | default;
-														   data-ams-data extension:object_data(widget);
+														   data-ams-data tales:object_data(widget);
 														   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 										<input tal:replace="structure widget.render()" />
 									</label>
@@ -96,7 +96,7 @@
 									<div class="col-md-4">
 										<label class="input"
 											   tal:attributes="class widget.widget_css_class | default;
-															   data-ams-data extension:object_data(widget);
+															   data-ams-data tales:object_data(widget);
 															   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 											<input tal:replace="structure widget.render()" />
 										</label>
@@ -116,7 +116,7 @@
 									<div class="col-md-3">
 										<label class="input"
 											   tal:attributes="class widget.widget_css_class | default;
-															   data-ams-data extension:object_data(widget);
+															   data-ams-data tales:object_data(widget);
 															   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 											<input tal:replace="structure widget.render()" />
 										</label>
@@ -131,7 +131,7 @@
 									<label class="input"
 											tal:define="widget view.widgets['created_after']"
 										   tal:attributes="class widget.widget_css_class | default;
-														   data-ams-data extension:object_data(widget);
+														   data-ams-data tales:object_data(widget);
 														   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 										<input tal:replace="structure widget.render()" />
 									</label>
@@ -143,7 +143,7 @@
 									<label class="input"
 											tal:define="widget view.widgets['created_before']"
 										   tal:attributes="class widget.widget_css_class | default;
-														   data-ams-data extension:object_data(widget);
+														   data-ams-data tales:object_data(widget);
 														   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 										<input tal:replace="structure widget.render()" />
 									</label>
@@ -157,7 +157,7 @@
 									<label class="input"
 											tal:define="widget view.widgets['modified_after']"
 										   tal:attributes="class widget.widget_css_class | default;
-														   data-ams-data extension:object_data(widget);
+														   data-ams-data tales:object_data(widget);
 														   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 										<input tal:replace="structure widget.render()" />
 									</label>
@@ -169,7 +169,7 @@
 									<label class="input"
 											tal:define="widget view.widgets['modified_before']"
 										   tal:attributes="class widget.widget_css_class | default;
-														   data-ams-data extension:object_data(widget);
+														   data-ams-data tales:object_data(widget);
 														   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 										<input tal:replace="structure widget.render()" />
 									</label>
--- a/src/pyams_content/shared/common/zmi/templates/advanced-search.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/shared/common/zmi/templates/advanced-search.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -22,7 +22,7 @@
 							  accept view.accept;
 							  autocomplete view.autocomplete;
 							  class view.css_class;
-							  data-ams-data extension:object_data(view);
+							  data-ams-data tales:object_data(view);
 							  data-ams-form-handler view.get_ajax_handler() | nothing;
 							  data-ams-form-options view.get_form_options() | nothing;
 							  data-ams-form-submit-target view.form_target | nothing;
@@ -75,7 +75,7 @@
 								<div class="col-md-9">
 									<label class="input"
 										   tal:attributes="class widget.widget_css_class | default;
-														   data-ams-data extension:object_data(widget);
+														   data-ams-data tales:object_data(widget);
 														   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 										<input tal:replace="structure widget.render()" />
 									</label>
@@ -96,7 +96,7 @@
 									<div class="col-md-4">
 										<label class="input"
 											   tal:attributes="class widget.widget_css_class | default;
-															   data-ams-data extension:object_data(widget);
+															   data-ams-data tales:object_data(widget);
 															   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 											<input tal:replace="structure widget.render()" />
 										</label>
@@ -116,7 +116,7 @@
 									<div class="col-md-4">
 										<label class="input"
 											   tal:attributes="class widget.widget_css_class | default;
-															   data-ams-data extension:object_data(widget);
+															   data-ams-data tales:object_data(widget);
 															   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 											<input tal:replace="structure widget.render()" />
 										</label>
@@ -131,7 +131,7 @@
 									<label class="input"
 											tal:define="widget view.widgets['created_after']"
 										   tal:attributes="class widget.widget_css_class | default;
-														   data-ams-data extension:object_data(widget);
+														   data-ams-data tales:object_data(widget);
 														   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 										<input tal:replace="structure widget.render()" />
 									</label>
@@ -143,7 +143,7 @@
 									<label class="input"
 											tal:define="widget view.widgets['created_before']"
 										   tal:attributes="class widget.widget_css_class | default;
-														   data-ams-data extension:object_data(widget);
+														   data-ams-data tales:object_data(widget);
 														   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 										<input tal:replace="structure widget.render()" />
 									</label>
@@ -157,7 +157,7 @@
 									<label class="input"
 											tal:define="widget view.widgets['modified_after']"
 										   tal:attributes="class widget.widget_css_class | default;
-														   data-ams-data extension:object_data(widget);
+														   data-ams-data tales:object_data(widget);
 														   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 										<input tal:replace="structure widget.render()" />
 									</label>
@@ -169,7 +169,7 @@
 									<label class="input"
 											tal:define="widget view.widgets['modified_before']"
 										   tal:attributes="class widget.widget_css_class | default;
-														   data-ams-data extension:object_data(widget);
+														   data-ams-data tales:object_data(widget);
 														   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 										<input tal:replace="structure widget.render()" />
 									</label>
--- a/src/pyams_content/shared/common/zmi/templates/check-input.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/shared/common/zmi/templates/check-input.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -30,7 +30,7 @@
 								accesskey view/accesskey;
 								onselect view/onselect;
 								checked python: checked and 'checked' or None;
-								data-ams-data extension:object_data(view);" />
+								data-ams-data tales:object_data(view);" />
 		<i></i><span tal:replace="item/label" i18n:translate="">Label</span>
 	</label>
 	<button class="btn btn-xs col-md-2" i18n:domain="pyams_content"
--- a/src/pyams_content/shared/common/zmi/templates/header.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/shared/common/zmi/templates/header.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -1,5 +1,5 @@
 <tal:block i18n:domain="pyams_content"
-		   define="config extension:back_configuration">
+		   define="config tales:back_configuration">
 	<tal:if condition="config.display_shared_tool_title">
 		<h1 class="page-title margin-bottom-5" tal:define="back_url view.back_url">
 			<a class="font-xs hint" data-ams-target="#content"
@@ -22,7 +22,7 @@
 		   data-ams-click-handler="PyAMS_content.profile.switchFavorite"
 		   data-ams-hint-gravity="w" title="Add/remove from favorites" i18n:attributes="title"
 		   tal:attributes="class 'fa fa-star{0} txt-color-blue hint opaque align-middle padding-left-10 padding-bottom-5'.format('' if view.favorite_content else '-o');
-						   data-ams-plugin-pyams_content-src extension:resource_path('pyams_content.skin:pyams_content');
+						   data-ams-plugin-pyams_content-src tales:resource_path('pyams_content.skin:pyams_content');
 						   data-sequence-oid view.hex_oid;"></i><br />
 		<span class="content-version" tal:content="string:V${view.version_id}">Version</span> =
 		<span class="content-state" tal:content="structure view.state">state</span> |
--- a/src/pyams_content/shared/common/zmi/templates/preview-input.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/shared/common/zmi/templates/preview-input.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -30,7 +30,7 @@
 								accesskey view/accesskey;
 								onselect view/onselect;
 								checked python: checked and 'checked' or None;
-								data-ams-data extension:object_data(view);" />
+								data-ams-data tales:object_data(view);" />
 		<i></i><span tal:replace="item/label" i18n:translate="">Label</span>
 	</label>
 	<button class="btn btn-xs col-md-2" i18n:domain="pyams_content"
--- a/src/pyams_content/shared/imagemap/zmi/templates/imagemap-preview.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/shared/imagemap/zmi/templates/imagemap-preview.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -3,6 +3,6 @@
 	<div class="col-md-9">
 		<img tal:define="map context.get_target();
 						 image i18n:map.image;"
-			 tal:attributes="src extension:absolute_url(image, '++thumb++600x480')" />
+			 tal:attributes="src tales:absolute_url(image, '++thumb++600x480')" />
 	</div>
 </div>
--- a/src/pyams_content/shared/imagemap/zmi/templates/widget-input.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/shared/imagemap/zmi/templates/widget-input.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -1,5 +1,5 @@
 <label data-ams-plugins="pyams_content"
-	   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')">
 	<input type="hidden"
 		   tal:attributes="id view/id;
 						   name view/name;
--- a/src/pyams_content/shared/site/zmi/widget/templates/folders-input.pt	Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/shared/site/zmi/widget/templates/folders-input.pt	Mon Jul 09 13:39:20 2018 +0200
@@ -1,6 +1,6 @@
 <div i18n:domain="pyams_content"
 	 data-ams-plugins="pyams_content"
-	 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')">
 	<input type="hidden"
 			tal:attributes="id view/id;
 							name view/name;