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
......@@ -68,9 +68,20 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>http_parameter_list.update(kw)\n
return context.ERP5XhtmlStyle_renderLink(link, context.ERP5XhtmlStyle_renderHTTPParameterList(http_parameter_list))\n
</string> </value>
<value> <string encoding="cdata"><![CDATA[
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>
<key> <string>_code</string> </key>
......@@ -122,6 +133,8 @@ return context.ERP5XhtmlStyle_renderLink(link, context.ERP5XhtmlStyle_renderHTTP
<string>http_parameter_list</string>
<string>kw</string>
<string>_getattr_</string>
<string>len</string>
<string>sep</string>
<string>context</string>
</tuple>
</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