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