[Erp5-report] r32420 jerome - in /erp5/trunk/bt5/erp5_consulting: SkinTemplateItem/portal_s...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Feb 10 18:01:19 CET 2010
Author: jerome
Date: Wed Feb 10 18:01:17 2010
New Revision: 32420
URL: http://svn.erp5.org?rev=32420&view=rev
Log:
reuse TextAreaField.render_odt, which handles properly line breaks
Modified:
erp5/trunk/bt5/erp5_consulting/SkinTemplateItem/portal_skins/erp5_consulting/UseCaseModule_viewUseCaseReportAsSxw.xml
erp5/trunk/bt5/erp5_consulting/bt/revision
Modified: erp5/trunk/bt5/erp5_consulting/SkinTemplateItem/portal_skins/erp5_consulting/UseCaseModule_viewUseCaseReportAsSxw.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_consulting/SkinTemplateItem/portal_skins/erp5_consulting/UseCaseModule_viewUseCaseReportAsSxw.xml?rev=32420&r1=32419&r2=32420&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_consulting/SkinTemplateItem/portal_skins/erp5_consulting/UseCaseModule_viewUseCaseReportAsSxw.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_consulting/SkinTemplateItem/portal_skins/erp5_consulting/UseCaseModule_viewUseCaseReportAsSxw.xml [utf8] Wed Feb 10 18:01:17 2010
@@ -64,7 +64,8 @@
office:class=\'text\' \n
office:version=\'1.0\' \n
xmlns:tal=\'http://xml.zope.org/namespaces/tal\'\n
- xmlns:i18n=\'http://xml.zope.org/namespaces/i18n\'>\n
+ xmlns:i18n=\'http://xml.zope.org/namespaces/i18n\'\n
+ tal:define="render_text python: lambda txt, attr_dict={}: context.Base_viewFieldLibrary.my_text_area_field.render_odt(value=txt, attr_dict=attr_dict)">\n
<office:script/>\n
<office:font-decls>\n
<style:font-decl style:name="Tahoma1" fo:font-family="Tahoma"/>\n
@@ -137,7 +138,7 @@
<div tal:omit-tag=\'\' tal:repeat=\'usecase python:here.searchFolder(portal_type="Use Case",sort_on=(("int_index",),), validation_state="validated") or (context,)\'>\n
<text:h text:style-name=\'Heading 2\' text:level=\'2\' i18n:domain="ui" i18n:translate="">Use Case : <span tal:replace=\'usecase/getTitle\'>Title</span></text:h>\n
\n
- <text:p text:style-name=\'Text body\' tal:content=\'usecase/getDescription\'>Use Case Description</text:p>\n
+ <text:p text:style-name=\'Text body\' tal:replace="structure python: render_text(usecase.getDescription(), {\'{http://openoffice.org/2000/text}style-name\': \'Text body\'})">Use Case Description</text:p>\n
\n
<tal:block tal:condition="python:usecase.contentValues(filter={\'portal_type\':\'Image\'})">\n
<text:h text:style-name=\'Heading 3\' text:level=\'3\' i18n:domain="ui" i18n:translate="">Related Requirement Processes</text:h>\n
@@ -184,7 +185,8 @@
<text:p text:style-name=\'P2\' tal:content=\'actor/getTitle\'>Title</text:p>\n
</table:table-cell>\n
<table:table-cell table:value-type=\'string\' table:style-name=\'Tableau1.A2\'>\n
- <text:p text:style-name=\'P2\' tal:content=\'actor/getDescription\'>Description</text:p>\n
+\n
+ <text:p text:style-name=\'P2\' tal:replace="structure python: render_text(actor.getDescription(), {\'{http://openoffice.org/2000/text}style-name\': \'P2\'})">Description</text:p>\n
</table:table-cell>\n
<table:table-cell table:value-type=\'string\' table:style-name=\'Tableau1.D2\'>\n
<text:p text:style-name=\'P2\'\n
@@ -199,7 +201,7 @@
\n
<text:h text:style-name=\'Heading 4\' text:level=\'4\' i18n:domain="ui" i18n:translate="">Scenario <span tal:replace=\'repeat/scenario/number\'>1</span> : <span tal:replace=\'python: scenario.getObject().getTitle()\'>Scenario Title</span></text:h>\n
\n
- <text:p text:style-name=\'Text body\' tal:content=\'python: scenario.getObject().getDescription()\'>Scenario Description</text:p>\n
+ <text:p text:style-name=\'Text body\' tal:replace="structure python: render_text(scenario.getObject().getDescription(), {\'{http://openoffice.org/2000/text}style-name\': \'Text body\'})">Description</text:p>\n
\n
<table:table table:style-name=\'Tableau1\' table:name=\'Tableau1\'>\n
\n
@@ -236,7 +238,7 @@
<text:p text:style-name=\'P2\' tal:content=\'python: step.getObject().getTitle()\'>Index</text:p>\n
</table:table-cell>\n
<table:table-cell table:value-type=\'string\' table:style-name=\'Tableau1.A2\'>\n
- <text:p text:style-name=\'P2\' tal:content=\'python: step.getObject().getDescription()\'>Description</text:p>\n
+ <text:p text:style-name=\'P2\' tal:replace="structure python: render_text(step.getObject().getDescription(), {\'{http://openoffice.org/2000/text}style-name\': \'P2\'})">Description</text:p>\n
</table:table-cell>\n
<table:table-cell table:value-type=\'string\' table:style-name=\'Tableau1.A2\'>\n
<text:p text:style-name=\'P2\' tal:content=\'python: step.getObject().getSourceSectionTitle()\'>Actor</text:p>\n
@@ -274,6 +276,10 @@
<value> <int>0</int> </value>
</item>
<item>
+ <key> <string>filename</string> </key>
+ <value> <string>object/title_or_id</string> </value>
+ </item>
+ <item>
<key> <string>id</string> </key>
<value> <string>UseCaseModule_viewUseCaseReportAsSxw</string> </value>
</item>
Modified: erp5/trunk/bt5/erp5_consulting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_consulting/bt/revision?rev=32420&r1=32419&r2=32420&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_consulting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_consulting/bt/revision [utf8] Wed Feb 10 18:01:17 2010
@@ -1,1 +1,1 @@
-48
+50
More information about the Erp5-report
mailing list