[Erp5-report] r17409 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Nov 6 10:51:07 CET 2007
Author: romain
Date: Tue Nov 6 10:51:07 2007
New Revision: 17409
URL: http://svn.erp5.org?rev=17409&view=rev
Log:
Remove useless parameter to getModuleItemList
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_getModuleItemList.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_getModuleItemList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_getModuleItemList.xml?rev=17409&r1=17408&r2=17409&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_getModuleItemList.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_getModuleItemList.xml Tue Nov 6 10:51:07 2007
@@ -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, portal_path=None):\n
- gettext = context.Localizer.erp5_ui.gettext\n
+def getModuleItemList(user=None):\n
+ gettext = portal.Localizer.erp5_ui.gettext\n
+\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 @@
return item_list\n
\n
getModuleItemList = CachingMethod(getModuleItemList, \n
- id=(\'ERP5Site_getModuleItemList\', context.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
+ id=(\'ERP5Site_getModuleItemList\', portal.Localizer.get_selected_language()),\n
+ cache_factory=\'erp5_ui_short\')\n
+\n
+return getModuleItemList(user=user)\n
</string> </value>
</item>
<item>
@@ -142,11 +143,10 @@
<string>CachingMethod</string>
<string>_getattr_</string>
<string>context</string>
+ <string>portal</string>
<string>user</string>
- <string>portal</string>
<string>None</string>
<string>getModuleItemList</string>
- <string>portal_path</string>
</tuple>
</value>
</item>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=17409&r1=17408&r2=17409&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Tue Nov 6 10:51:07 2007
@@ -1,1 +1,1 @@
-557
+558
More information about the Erp5-report
mailing list