Commit 503441fc authored by Sebastien Robin's avatar Sebastien Robin

allow import of Selection in python scripts


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3511 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7090a08d
...@@ -36,6 +36,10 @@ from AccessControl import ModuleSecurityInfo ...@@ -36,6 +36,10 @@ from AccessControl import ModuleSecurityInfo
import sys, Permissions import sys, Permissions
this_module = sys.modules[ __name__ ] this_module = sys.modules[ __name__ ]
document_classes = updateGlobals( this_module, globals(), permissions_module = Permissions) document_classes = updateGlobals( this_module, globals(), permissions_module = Permissions)
from Products.PythonScripts.Utility import allow_class
import Selection
allow_class(Selection)
# Define object classes and tools # Define object classes and tools
import Form, FSForm, ListBox, MatrixBox, SelectionTool, ZGDChart, PDFTemplate,\ import Form, FSForm, ListBox, MatrixBox, SelectionTool, ZGDChart, PDFTemplate,\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment