[Erp5-report] r45783 fx.algrain - /erp5/trunk/products/ERP5/Document/PythonScript.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue May 3 10:40:38 CEST 2011


Author: fx.algrain
Date: Tue May  3 10:40:38 2011
New Revision: 45783

URL: http://svn.erp5.org?rev=45783&view=rev
Log:
Update manage_main. All tabs work well.

Modified:
    erp5/trunk/products/ERP5/Document/PythonScript.py

Modified: erp5/trunk/products/ERP5/Document/PythonScript.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/PythonScript.py?rev=45783&r1=45782&r2=45783&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/PythonScript.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/PythonScript.py [utf8] Tue May  3 10:40:38 2011
@@ -75,6 +75,11 @@ class PythonScript(XMLObject, ZopePython
     # Declarative security
     security = ClassSecurityInfo()
     security.declareObjectProtected(Permissions.AccessContentsInformation)
+    
+    #View content list, Force /view, Standart option in python scripts
+    manage_options = ( XMLObject.manage_options[0],
+                       {'icon':'', 'label':'View','action':'view'}) \
+                       + ZopePythonScript.manage_options
 
     # Declarative properties
     property_sheets = ( PropertySheet.Base



More information about the Erp5-report mailing list