[Erp5-report] r19034 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Feb 4 20:29:32 CET 2008


Author: jerome
Date: Mon Feb  4 20:29:31 2008
New Revision: 19034

URL: http://svn.erp5.org?rev=19034&view=rev
Log:
Don't use context.REQUEST.AUTHENTICATED_USER, it doesn't work in ZopeTestCase

Modified:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getNodeItemList.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getNodeItemList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getNodeItemList.xml?rev=19034&r1=19033&r2=19034&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getNodeItemList.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getNodeItemList.xml Mon Feb  4 20:29:31 2008
@@ -72,6 +72,8 @@
 node.\n
 """\n
 from Products.ERP5Type.Cache import CachingMethod\n
+from AccessControl import getSecurityManager\n
+\n
 portal = context.getPortalObject()\n
 \n
 if omit_filter:\n
@@ -149,7 +151,7 @@
                     portal_path=context.getPortalObject().getPhysicalPath(),\n
                     mirror=mirror,\n
                     omit_filter=omit_filter, # XXX possible optim: only one cache if omit_filter\n
-                    user_name=context.REQUEST.AUTHENTICATED_USER,\n
+                    user_name=str(getSecurityManager().getUser()),\n
                     simulation_state=context.getProperty(\n
                           \'simulation_state\', \'no_simulation_state\') )\n
 </string> </value>
@@ -204,6 +206,8 @@
                             <string>omit_filter</string>
                             <string>Products.ERP5Type.Cache</string>
                             <string>CachingMethod</string>
+                            <string>AccessControl</string>
+                            <string>getSecurityManager</string>
                             <string>_getattr_</string>
                             <string>context</string>
                             <string>portal</string>
@@ -215,6 +219,7 @@
                             <string>sort</string>
                             <string>None</string>
                             <string>getItemList</string>
+                            <string>str</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=19034&r1=19033&r2=19034&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Mon Feb  4 20:29:31 2008
@@ -1,1 +1,1 @@
-566
+568




More information about the Erp5-report mailing list