Commit 02692e07 authored by Julien Muchembled's avatar Julien Muchembled

Allow to paste ERP5 Python Scripts through ZMI

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40034 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ba39106
...@@ -56,18 +56,14 @@ class PythonScriptThroughZMI(XMLObject): ...@@ -56,18 +56,14 @@ class PythonScriptThroughZMI(XMLObject):
This class needs to be removed as soon as portal_skins is an ERP5 object This class needs to be removed as soon as portal_skins is an ERP5 object
""" """
meta_type = 'ERP5 Python Script Through ZMI' meta_type = 'ERP5 Python Script'
portal_type = 'Python Script Through ZMI' constructors = (manage_addPythonScriptFormThroughZMI,
add_permission = Permissions.AddPortalContent
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
constructors = (manage_addPythonScriptFormThroughZMI,
addPythonScriptThroughZMI) addPythonScriptThroughZMI)
icon = None icon = None
def __init__(self, *args, **kw):
assert False
class PythonScript(XMLObject, ZopePythonScript): class PythonScript(XMLObject, ZopePythonScript):
""" Script python for ERP5 """ Script python for ERP5
""" """
......
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