diff --git a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyModule_getCurrencyItemList.xml b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyModule_getCurrencyItemList.xml index ac6fa1a5214872e2febd3971d54abb1f23f50ffa..587013a8f8f4d9389f795a880156fe40f58c1c3a 100644 --- a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyModule_getCurrencyItemList.xml +++ b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyModule_getCurrencyItemList.xml @@ -53,8 +53,11 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>portal = context.getPortalObject()\n -from ZTUtils import LazyFilter\n + <value> <string>from ZTUtils import LazyFilter\n +from Products.CMFCore.permissions import AccessContentsInformation\n +\n +\n +portal = context.getPortalObject()\n \n def getCurrencyItemList(include_empty=1, portal_path=""):\n result = []\n @@ -65,7 +68,7 @@ def getCurrencyItemList(include_empty=1, portal_path=""):\n portal.restrictedTraverse(\'currency\', None))\n \n if currency_module is not None:\n - for currency in LazyFilter(currency_module.contentValues(), skip=\'View\'):\n + for currency in LazyFilter(currency_module.contentValues(), skip=AccessContentsInformation):\n if not skip_invalidated or \\\n currency.getProperty(\'validation_state\', \'default\') != \'invalidated\':\n # for currency, we intentionaly use reference (EUR) not title (Euros).\n @@ -121,11 +124,13 @@ return getCurrencyItemList( include_empty=include_empty,\n <tuple> <string>include_empty</string> <string>skip_invalidated</string> + <string>ZTUtils</string> + <string>LazyFilter</string> + <string>Products.CMFCore.permissions</string> + <string>AccessContentsInformation</string> <string>_getattr_</string> <string>context</string> <string>portal</string> - <string>ZTUtils</string> - <string>LazyFilter</string> <string>getCurrencyItemList</string> <string>Products.ERP5Type.Cache</string> <string>CachingMethod</string> diff --git a/bt5/erp5_base/bt/change_log b/bt5/erp5_base/bt/change_log index cf477c15fdee4ea07af84e5dd270ea783831d21f..3d56c4c1c3b5b0e88e22eff20064523d9a0b5685 100644 --- a/bt5/erp5_base/bt/change_log +++ b/bt5/erp5_base/bt/change_log @@ -1,3 +1,6 @@ +2010-03-31 yusei +* Use "Access contents information" instead of "View" to check if currency can be displayed or not. + 2010-03-11 yusuke * Reference generating script comes from erp5_trade. diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision index c5321a6e72328aa5f59125f67df79b7d075efa93..20f3ba5854e8d64eeaaf3ec9e70bda106317866f 100644 --- a/bt5/erp5_base/bt/revision +++ b/bt5/erp5_base/bt/revision @@ -1 +1 @@ -709 \ No newline at end of file +710 \ No newline at end of file