Commit 230f4c5d authored by Jérome Perrin's avatar Jérome Perrin

don't use portal_catalog.getObject(uid) when it's not necessary



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11450 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 20751d18
...@@ -71,8 +71,10 @@ ...@@ -71,8 +71,10 @@
<value> <string>"""Retrieve the title of the mirror section\n <value> <string>"""Retrieve the title of the mirror section\n
"""\n """\n
if brain.mirror_section_uid:\n if brain.mirror_section_uid:\n
return context.getPortalObject().portal_catalog.getObject(\n movement = brain.getObject()\n
uid=brain.mirror_section_uid).getTitle()\n if brain.mirror_section_uid == movement.getDestinationSectionUid():\n
return movement.getDestinationSectionTitle()\n
return movement.getSourceSectionTitle()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -125,7 +127,7 @@ if brain.mirror_section_uid:\n ...@@ -125,7 +127,7 @@ if brain.mirror_section_uid:\n
<string>selection</string> <string>selection</string>
<string>kwd</string> <string>kwd</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>movement</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
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