Commit 2db930d6 authored by Ivan Tyagov's avatar Ivan Tyagov

Replace wrongly used tal:replace with tal:content which broke Pt under Zope 2.12

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43731 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c2cf469f
...@@ -106,7 +106,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -106,7 +106,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<div tal:omit-tag=""\n <div tal:omit-tag=""\n
tal:define="struct python:field.render(value,request)">\n tal:define="struct python:field.render(value,request)">\n
<div tal:omit-tag=""\n <div tal:omit-tag=""\n
tal:define="struct python:struct.replace(\'&nbsp;;\',\'\');\n tal:define="struct python:struct.replace(\'&nbsp;\',\'\');\n
struct_input_div python:struct.split(\'<input\');\n struct_input_div python:struct.split(\'<input\');\n
struct_input_len python:len(struct_input_div);\n struct_input_len python:len(struct_input_div);\n
struct_input_range python:range(struct_input_len);\n struct_input_range python:range(struct_input_len);\n
...@@ -118,7 +118,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -118,7 +118,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
struct_test python:struct_selec_test and struct_input_test">\n struct_test python:struct_selec_test and struct_input_test">\n
<div tal:replace="nothing">\n <div tal:replace="nothing">\n
- rendering final output string through \'field.render\'.\n - rendering final output string through \'field.render\'.\n
- replacing all \'&nbsp\' with \'\' to prevent error in rendering\n - replacing all \'&amps;nbsp\' with \'\' to prevent error in rendering\n
- making two tests : first one (struct_input_test) is used to test if\n - making two tests : first one (struct_input_test) is used to test if\n
rendering is single field (StringField, ) or multi-field\n rendering is single field (StringField, ) or multi-field\n
(DateTimeField, RelationStringField, ).\n (DateTimeField, RelationStringField, ).\n
...@@ -135,13 +135,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -135,13 +135,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
output rendering as a single field.\n output rendering as a single field.\n
UPDATE : with xhtml_style, this \n UPDATE : with xhtml_style, this \n
</div>\n </div>\n
<div class="input" tal:attributes="class python: (\'<\' not in struct) and \'%s_class\' % name or \'\'" tal:condition="python:(not field_errors.has_key(field.id))"><!-- field has no error -->\n - <div class="input" tal:attributes="class python: (\'<\' not in struct) and \'%s_class\' % name or \'\'" tal:condition="python:(not field_errors.has_key(field.id))"><!-- field has no error -->\n
<div tal:replace="structure struct"\n <div tal:content="structure struct"\n
tal:attributes="class string:${name}_class;\n tal:attributes="class string:${name}_class;\n
title field/title"/>\n title field/title"/>\n
</div>\n </div>\n
<div class="input" tal:attributes="class python: (\'<\' not in struct) and \'%s_class\' % name or \'\'" tal:condition="python: field_errors.has_key(field.id)"><!-- field has errors-->\n <div class="input" tal:attributes="class python: (\'<\' not in struct) and \'%s_class\' % name or \'\'" tal:condition="python: field_errors.has_key(field.id)"><!-- field has errors-->\n
<div tal:replace="structure struct"\n <div tal:content="structure struct"\n
i18n:attributes="title"\n i18n:attributes="title"\n
tal:attributes="class string:${name}_class_error;\n tal:attributes="class string:${name}_class_error;\n
title string:${field/title}"/>\n title string:${field/title}"/>\n
...@@ -163,12 +163,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -163,12 +163,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
tal:repeat="struct_ind python:struct_range[1:]">\n tal:repeat="struct_ind python:struct_range[1:]">\n
<div tal:condition="python:(not field_errors.has_key(field.id))"><!-- field has no error 1-->\n <div tal:condition="python:(not field_errors.has_key(field.id))"><!-- field has no error 1-->\n
<div tal:define="struct_content python:struct_input_div[struct_ind];\n <div tal:define="struct_content python:struct_input_div[struct_ind];\n
struct_content python:\'/>\'in struct_content and struct_content[:struct_content.rfind(\'/>\')+2] or struct_content;\n struct_content python:\'/>\'in struct_content and struct_content[:struct_content.rfind(\'/&gt;\')+2] or struct_content;\n
struct_final python:\'%s %s\' %\n struct_final python:\'%s %s\' %\n
(\'<input \', struct_content);\n (\'<input \', struct_content);\n
class_final python:\'%s%s%s\' %\n class_final python:\'%s%s%s\' %\n
(class_base,\'_class_\', struct_ind)"\n (class_base,\'_class_\', struct_ind)"\n
tal:replace="structure struct_final"\n tal:content="structure struct_final"\n
tal:attributes="class class_final;\n tal:attributes="class class_final;\n
title field/title">\n title field/title">\n
</div>\n </div>\n
...@@ -179,7 +179,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -179,7 +179,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
(\'<input \', struct_content);\n (\'<input \', struct_content);\n
class_final python:\'%s%s%s%s\' %\n class_final python:\'%s%s%s%s\' %\n
(class_base,\'_class_\', struct_ind, \'_error\')"\n (class_base,\'_class_\', struct_ind, \'_error\')"\n
tal:replace="structure struct_final"\n tal:content="structure struct_final"\n
i18n:attributes="title"\n i18n:attributes="title"\n
tal:attributes="class class_final;\n tal:attributes="class class_final;\n
title field/title"/>\n title field/title"/>\n
...@@ -197,7 +197,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -197,7 +197,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
(\'<input \', struct_content);\n (\'<input \', struct_content);\n
class_final python:\'%s%s\' %\n class_final python:\'%s%s\' %\n
(class_base,\'_class\')"\n (class_base,\'_class\')"\n
tal:replace="structure struct_final"\n tal:content="structure struct_final"\n
tal:attributes="class class_final;\n tal:attributes="class class_final;\n
title field/title"/>\n title field/title"/>\n
</tal:block>\n </tal:block>\n
...@@ -208,7 +208,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -208,7 +208,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
(\'<input \', struct_content);\n (\'<input \', struct_content);\n
class_final python:\'%s%s\' %\n class_final python:\'%s%s\' %\n
(class_base,\'_class_error\')"\n (class_base,\'_class_error\')"\n
tal:replace="structure struct_final"\n tal:content="structure struct_final"\n
tal:attributes="class class_final;\n tal:attributes="class class_final;\n
title field/title"/>\n title field/title"/>\n
</tal:block>\n </tal:block>\n
...@@ -235,14 +235,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -235,14 +235,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<div tal:condition="python:(not field_errors.has_key(field.id))"\n <div tal:condition="python:(not field_errors.has_key(field.id))"\n
tal:define="class_final python:\'%s%s%s\' %\n tal:define="class_final python:\'%s%s%s\' %\n
(class_base,\'_class_\', struct_ind)"\n (class_base,\'_class_\', struct_ind)"\n
tal:replace="structure python:struct_selec_div[struct_ind]"\n tal:content="structure python:struct_selec_div[struct_ind]"\n
tal:attributes="class class_final;\n tal:attributes="class class_final;\n
title field/title"/>\n title field/title"/>\n
<!-- field has errors -->\n <!-- field has errors -->\n
<div tal:condition="python:field_errors.has_key(field.id)"\n <div tal:condition="python:field_errors.has_key(field.id)"\n
tal:define="class_final python:\'%s%s%s%s\' %\n tal:define="class_final python:\'%s%s%s%s\' %\n
(class_base,\'_class_\', struct_ind, \'_error\')"\n (class_base,\'_class_\', struct_ind, \'_error\')"\n
tal:replace="structure python:struct_selec_div[struct_ind]"\n tal:content="structure python:struct_selec_div[struct_ind]"\n
tal:attributes="class class_final;\n tal:attributes="class class_final;\n
title field/title"/>\n title field/title"/>\n
</div>\n </div>\n
...@@ -288,8 +288,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -288,8 +288,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>
]]></unicode> </value> ]]></unicode> </value>
</item> </item>
...@@ -307,7 +306,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -307,7 +306,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
</item> </item>
<item> <item>
<key> <string>output_encoding</string> </key> <key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value> <value> <string>iso-8859-15</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
749 750
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment