[Erp5-report] r29656 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 14 19:05:20 CEST 2009


Author: kazuhiko
Date: Wed Oct 14 19:05:13 2009
New Revision: 29656

URL: http://svn.erp5.org?rev=29656&view=rev
Log:
move the definition of type_info to skip needless evaluation, because it is only used inside.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml?rev=29656&r1=29655&r2=29656&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml [utf8] Wed Oct 14 19:05:13 2009
@@ -52,9 +52,9 @@
           <option tal:attributes="value jump/url"\n
                   tal:content="jump/name" i18n:translate="" i18n:domain="ui" />\n
         </tal:block>\n
-        <tal:block tal:condition="preferred_html_style_developper_mode"\n
-                   tal:define="type_info python: portal.portal_types.getTypeInfo(here)">\n
-          <tal:block tal:condition="python: type_info is not None and type_info.Base_getSourceVisibility()">\n
+        <tal:block tal:condition="preferred_html_style_developper_mode">\n
+          <tal:block tal:condition="python: type_info is not None and type_info.Base_getSourceVisibility()"\n
+                     tal:define="type_info python: portal.portal_types.getTypeInfo(here)">\n
             <option value="1" disabled="disabled" i18n:translate="" i18n:domain="ui">-- Developer Mode --</option>\n
             <option tal:attributes="value python: \'%s/view\' % type_info.absolute_url_path()"\n
                     i18n:translate="" i18n:domain="ui">Edit Portal Type \'<tal:block tal:content="here/getPortalTypeName"\n

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=29656&r1=29655&r2=29656&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] Wed Oct 14 19:05:13 2009
@@ -1,1 +1,1 @@
-840
+841




More information about the Erp5-report mailing list