Commit c2ac3292 authored by Yoshinori Okuji's avatar Yoshinori Okuji

2007-08-18 yo

* ERP5Site does not have getPortalType, so avoid calling getPortalType if not present.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15741 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e8eae8a8
......@@ -109,8 +109,9 @@ hasDuplicateActions = CachingMethod(\n
cache_factory=\'erp5_ui_long\')\n
\n
user_name = str(container.REQUEST.AUTHENTICATED_USER)\n
if hasDuplicateActions(context.getPortalType(), user_name):\n
return filterDuplicateActions(actions)\n
if getattr(context, \'getPortalType\', None) is not None:\n
if hasDuplicateActions(context.getPortalType(), user_name):\n
return filterDuplicateActions(actions)\n
return actions\n
</string> </value>
</item>
......@@ -169,7 +170,9 @@ return actions\n
<string>_getattr_</string>
<string>container</string>
<string>user_name</string>
<string>getattr</string>
<string>context</string>
<string>None</string>
</tuple>
</value>
</item>
......
2007-08-18 yo
* ERP5Site does not have getPortalType, so avoid calling getPortalType if not present.
2007-07-02 Yusei
* Fixed a invalid xhtml template.
......
413
\ No newline at end of file
414
\ No newline at end of file
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