Renamed TALES extension
authorThierry Florac <thierry.florac@onf.fr>
Mon, 09 Jul 2018 13:42:42 +0200
changeset 149 0cdf3652748d
parent 148 b9dd84d35128
child 150 95e0b523b531
Renamed TALES extension
src/pyams_portal/portlets/image/skin/image.pt
src/pyams_portal/portlets/image/zmi/preview.pt
src/pyams_portal/zmi/templates/layout.pt
src/pyams_portal/zmi/templates/portlet.pt
src/pyams_portal/zmi/templates/renderer-input.pt
--- a/src/pyams_portal/portlets/image/skin/image.pt	Mon Jul 09 11:43:13 2018 +0200
+++ b/src/pyams_portal/portlets/image/skin/image.pt	Mon Jul 09 13:42:42 2018 +0200
@@ -1,11 +1,11 @@
 <tal:if condition="view.settings.image">
 	<picture
 		tal:define="image view.settings.image;
-					image_url extension:absolute_url(image);
+					image_url tales:absolute_url(image);
 					slot_config view.slot_configuration;
 					slot_width slot_config.get_width();
 					base_width 100 / 12;
-					timestamp extension:timestamp(image);">
+					timestamp tales:timestamp(image);">
 		<tal:var define="width slot_width['lg']">
 			<source media="(min-width: 1200px)"
 					tal:condition="width"
--- a/src/pyams_portal/portlets/image/zmi/preview.pt	Mon Jul 09 11:43:13 2018 +0200
+++ b/src/pyams_portal/portlets/image/zmi/preview.pt	Mon Jul 09 13:42:42 2018 +0200
@@ -3,14 +3,14 @@
 		<a class="fancybox" data-toggle
 		   data-ams-fancybox-type="image"
 		   tal:define="image settings.image;
-					   image_url extension:absolute_url(image);
+					   image_url tales:absolute_url(image);
 					   slot_config view.slot_configuration;
 					   slot_width slot_config.get_width();
 					   base_width 100 / 12;
-					   thumbnails extension:thumbnails(image);
+					   thumbnails tales:thumbnails(image);
 					   target python:thumbnails.get_thumbnail('800x600');
-					   timestamp extension:timestamp(image);"
-		   tal:attributes="href extension:absolute_url(target)">
+					   timestamp tales:timestamp(image);"
+		   tal:attributes="href tales:absolute_url(target)">
 			<picture>
 				<tal:var define="width slot_width['lg']">
 					<source media="(min-width: 1200px)"
--- a/src/pyams_portal/zmi/templates/layout.pt	Mon Jul 09 11:43:13 2018 +0200
+++ b/src/pyams_portal/zmi/templates/layout.pt	Mon Jul 09 13:42:42 2018 +0200
@@ -5,8 +5,8 @@
 	<div class="ams-widget"
 		 data-ams-focus-target
 		 data-ams-plugins="pyams_portal"
-		 tal:attributes="data-ams-plugin-pyams_portal-src extension:resource_path('pyams_portal:pyams_portal');
-						 data-ams-plugin-pyams_portal-css extension:resource_path('pyams_portal:pyams_portal_css');"
+		 tal:attributes="data-ams-plugin-pyams_portal-src tales:resource_path('pyams_portal:pyams_portal');
+						 data-ams-plugin-pyams_portal-css tales:resource_path('pyams_portal:pyams_portal_css');"
 		 data-ams-plugin-pyams_portal-callback="PyAMS_portal.template.initConfig">
 		<header>
 			<span tal:condition="view.widget_icon_class | nothing"
--- a/src/pyams_portal/zmi/templates/portlet.pt	Mon Jul 09 11:43:13 2018 +0200
+++ b/src/pyams_portal/zmi/templates/portlet.pt	Mon Jul 09 13:42:42 2018 +0200
@@ -10,7 +10,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="view.title">Title</span>
 			</h3>
 			<tal:var replace="structure provider:form_toolbar" />
@@ -32,7 +32,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;
@@ -94,7 +94,7 @@
 								<tal:var define="help group.help" condition="help">
 									<div class="alert alert-info padding-5"
 										 tal:define="i18n_help request.localizer.translate(help);"
-										 tal:content="structure extension:html(i18n_help)"></div>
+										 tal:content="structure tales:html(i18n_help)"></div>
 								</tal:var>
 								<tal:loop repeat="widget group.visible_widgets">
 									<input type="hidden"
--- a/src/pyams_portal/zmi/templates/renderer-input.pt	Mon Jul 09 11:43:13 2018 +0200
+++ b/src/pyams_portal/zmi/templates/renderer-input.pt	Mon Jul 09 13:42:42 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;"