[Erp5-report] r34219 yusei - in /erp5/trunk/bt5/erp5_base: SkinTemplateItem/portal_skins/er...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 31 08:17:27 CEST 2010


Author: yusei
Date: Wed Mar 31 08:17:25 2010
New Revision: 34219

URL: http://svn.erp5.org?rev=34219&view=rev
Log:
2010-03-31 yusei
* Use "Access contents information" instead of "View" to check if currency can be displayed or not.

Modified:
    erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyModule_getCurrencyItemList.xml
    erp5/trunk/bt5/erp5_base/bt/change_log
    erp5/trunk/bt5/erp5_base/bt/revision

Modified: erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyModule_getCurrencyItemList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyModule_getCurrencyItemList.xml?rev=34219&r1=34218&r2=34219&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyModule_getCurrencyItemList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyModule_getCurrencyItemList.xml [utf8] Wed Mar 31 08:17:25 2010
@@ -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 @@
                              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 @@
                           <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>

Modified: erp5/trunk/bt5/erp5_base/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/bt/change_log?rev=34219&r1=34218&r2=34219&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/bt/change_log [utf8] (original)
+++ erp5/trunk/bt5/erp5_base/bt/change_log [utf8] Wed Mar 31 08:17:25 2010
@@ -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.
 

Modified: erp5/trunk/bt5/erp5_base/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/bt/revision?rev=34219&r1=34218&r2=34219&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_base/bt/revision [utf8] Wed Mar 31 08:17:25 2010
@@ -1,1 +1,1 @@
-709
+710




More information about the Erp5-report mailing list