[Erp5-report] r16885 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 8 13:53:41 CEST 2007


Author: seb
Date: Mon Oct  8 13:53:40 2007
New Revision: 16885

URL: http://svn.erp5.org?rev=16885&view=rev
Log:
revert change 15745 and increase performance of view about 5%

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_filterDuplicateActions.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_filterDuplicateActions.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_filterDuplicateActions.xml?rev=16885&r1=16884&r2=16885&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_filterDuplicateActions.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_filterDuplicateActions.xml Mon Oct  8 13:53:40 2007
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.PythonScripts.PythonScript</string>
-          <string>PythonScript</string>
-        </tuple>
-        <none/>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -76,7 +73,6 @@
 The script must be called on the context of the document.\n
 """\n
 from Products.ERP5Type.Cache import CachingMethod\n
-from AccessControl import getSecurityManager\n
 def filterDuplicateActions(actions):\n
   new_actions = dict()\n
 \n
@@ -108,7 +104,8 @@
                           id=\'Base_filterDuplicateActions.hasDuplicateActions\',\n
                           cache_factory=\'erp5_ui_long\')\n
 \n
-user_name = str(getSecurityManager().getUser())\n
+user_name = getattr(container.REQUEST, \'AUTHENTICATED_USER\', \'\')\n
+\n
 if getattr(context, \'getPortalType\', None) is not None:\n
   if hasDuplicateActions(context.getPortalType(), user_name):\n
     return filterDuplicateActions(actions)\n
@@ -164,14 +161,12 @@
                             <string>actions</string>
                             <string>Products.ERP5Type.Cache</string>
                             <string>CachingMethod</string>
-                            <string>AccessControl</string>
-                            <string>getSecurityManager</string>
                             <string>filterDuplicateActions</string>
                             <string>hasDuplicateActions</string>
-                            <string>str</string>
+                            <string>getattr</string>
                             <string>_getattr_</string>
+                            <string>container</string>
                             <string>user_name</string>
-                            <string>getattr</string>
                             <string>context</string>
                             <string>None</string>
                           </tuple>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=16885&r1=16884&r2=16885&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision Mon Oct  8 13:53:40 2007
@@ -1,1 +1,1 @@
-447
+440




More information about the Erp5-report mailing list