Commit b3500581 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

move the definition of type_info to skip needless evaluation, because it is only used inside.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29656 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cc43d08d
...@@ -52,9 +52,9 @@ ...@@ -52,9 +52,9 @@
<option tal:attributes="value jump/url"\n <option tal:attributes="value jump/url"\n
tal:content="jump/name" i18n:translate="" i18n:domain="ui" />\n tal:content="jump/name" i18n:translate="" i18n:domain="ui" />\n
</tal:block>\n </tal:block>\n
<tal:block tal:condition="preferred_html_style_developper_mode"\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 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
<option value="1" disabled="disabled" i18n:translate="" i18n:domain="ui">-- Developer Mode --</option>\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 <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 i18n:translate="" i18n:domain="ui">Edit Portal Type \'<tal:block tal:content="here/getPortalTypeName"\n
......
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