[Erp5-report] r11566 - in /erp5/trunk/products/ERP5Form: ListBox.py www/ListBox_asHTML.zpt

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Dec 1 11:22:43 CET 2006


Author: romain
Date: Fri Dec  1 11:22:40 2006
New Revision: 11566

URL: http://svn.erp5.org?rev=11566&view=rev
Log:
Use generic accessor for data translation in domain tree.

Modified:
    erp5/trunk/products/ERP5Form/ListBox.py
    erp5/trunk/products/ERP5Form/www/ListBox_asHTML.zpt

Modified: erp5/trunk/products/ERP5Form/ListBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ListBox.py?rev=11566&r1=11565&r2=11566&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py Fri Dec  1 11:22:40 2006
@@ -2144,7 +2144,7 @@
     # FIXME: This part should be replaced with Page Templates.
     html_list = []
     ui_domain = 'erp5_ui'
-    context_domain = 'erp5_context'
+    context_domain = 'erp5_content'
     param_dict = self.getParamDict()
 
     # Prepare format parameters.
@@ -2232,10 +2232,10 @@
 
           if report_tree.is_open:
             method_id = 'foldDomain'
-            content = u'-&nbsp;<b>%s</b>' % unicode(Message(domain = ui_domain, message = report_tree.obj.getTitleOrId()))
+            content = u'-&nbsp;<b>%s</b>' % unicode(report_tree.obj.getTranslatedTitleOrId())
           else:
             method_id = 'unfoldDomain'
-            content = u'+&nbsp;%s' % unicode(Message(domain = ui_domain, message = report_tree.obj.getTitleOrId()))
+            content = u'+&nbsp;%s' % unicode(report_tree.obj.getTranslatedTitleOrId())
 
           html_list.append("""\
       <td nowrap valign="top" align="left" colspan="%d">

Modified: erp5/trunk/products/ERP5Form/www/ListBox_asHTML.zpt
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/www/ListBox_asHTML.zpt?rev=11566&r1=11565&r2=11566&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/www/ListBox_asHTML.zpt (original)
+++ erp5/trunk/products/ERP5Form/www/ListBox_asHTML.zpt Fri Dec  1 11:22:40 2006
@@ -60,10 +60,10 @@
                     tal:attributes="colspan python: total_depth - report_tree.depth + 1">
                     <a href="method"
                       tal:condition="report_tree/is_open"
-                      tal:attributes="href string:portal_selections/foldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}">-&nbsp;<b tal:content="report_tree/obj/getTitleOrId" i18n:translate="" i18n:domain="ui">Domain</b></a>
+                      tal:attributes="href string:portal_selections/foldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}">-&nbsp;<b tal:content="report_tree/obj/getTranslatedTitleOrId">Domain</b></a>
                     <a href="method"
                       tal:condition="not: report_tree/is_open"
-                      tal:attributes="href string:portal_selections/unfoldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}">+&nbsp;<tal:block tal:content="report_tree/obj/getTitleOrId" i18n:translate="" i18n:domain="ui">Domain</tal:block></a>
+                      tal:attributes="href string:portal_selections/unfoldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}">+&nbsp;<tal:block tal:content="report_tree/obj/getTranslatedTitleOrId">Domain</tal:block></a>
                   </td>
                 </tr>
               </table>




More information about the Erp5-report mailing list