Commit 86ea435f authored by Romain Courteaud's avatar Romain Courteaud

Remove useless parameter to getModuleItemList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17409 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 37650273
No related merge requests found
......@@ -70,11 +70,12 @@
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Cache import CachingMethod\n
\n
user = context.portal_membership.getAuthenticatedMember().getUserName()\n
portal = context.getPortalObject()\n
user = portal.portal_membership.getAuthenticatedMember().getUserName()\n
\n
def getModuleItemList(user=None):\n
gettext = portal.Localizer.erp5_ui.gettext\n
\n
def getModuleItemList(user=None, portal_path=None):\n
gettext = context.Localizer.erp5_ui.gettext\n
item_list = []\n
for module_id in portal.objectIds(spec=(\'ERP5 Folder\',)):\n
module = portal.restrictedTraverse(module_id, None)\n
......@@ -86,10 +87,10 @@ def getModuleItemList(user=None, portal_path=None):\n
return item_list\n
\n
getModuleItemList = CachingMethod(getModuleItemList, \n
id=(\'ERP5Site_getModuleItemList\', context.Localizer.get_selected_language()),\n
id=(\'ERP5Site_getModuleItemList\', portal.Localizer.get_selected_language()),\n
cache_factory=\'erp5_ui_short\')\n
portal_path = context.getPortalObject().getPhysicalPath()\n
return getModuleItemList(user=user, portal_path=portal_path)\n
\n
return getModuleItemList(user=user)\n
</string> </value>
</item>
<item>
......@@ -142,11 +143,10 @@ return getModuleItemList(user=user, portal_path=portal_path)\n
<string>CachingMethod</string>
<string>_getattr_</string>
<string>context</string>
<string>user</string>
<string>portal</string>
<string>user</string>
<string>None</string>
<string>getModuleItemList</string>
<string>portal_path</string>
</tuple>
</value>
</item>
......
557
\ No newline at end of file
558
\ 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