Commit 7aa51ece authored by Vincent Pelletier's avatar Vincent Pelletier

Inline the use of ERP5XhtmlStyle_renderLink since the call itself costs more...

Inline the use of ERP5XhtmlStyle_renderLink since the call itself costs more in time than the processing itself.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10686 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 32bffc3f
No related merge requests found
...@@ -68,9 +68,20 @@ ...@@ -68,9 +68,20 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>http_parameter_list.update(kw)\n <value> <string encoding="cdata"><![CDATA[
return context.ERP5XhtmlStyle_renderLink(link, context.ERP5XhtmlStyle_renderHTTPParameterList(http_parameter_list))\n
</string> </value> http_parameter_list.update(kw)\n
if len(http_parameter_list) == 0:\n
return link\n
if \'?\' in link:\n
sep=\'&\'\n
else:\n
sep=\'?\'\n
\n
return \'%s%s%s\' % (link, sep, context.ERP5XhtmlStyle_renderHTTPParameterList(http_parameter_list))\n
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
...@@ -122,6 +133,8 @@ return context.ERP5XhtmlStyle_renderLink(link, context.ERP5XhtmlStyle_renderHTTP ...@@ -122,6 +133,8 @@ return context.ERP5XhtmlStyle_renderLink(link, context.ERP5XhtmlStyle_renderHTTP
<string>http_parameter_list</string> <string>http_parameter_list</string>
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>len</string>
<string>sep</string>
<string>context</string> <string>context</string>
</tuple> </tuple>
</value> </value>
......
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