Commit 954d985a authored by Romain Courteaud's avatar Romain Courteaud

Add removeZODBPythonScript.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9696 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e3894b2b
......@@ -47,3 +47,8 @@ def createZODBPythonScript(container, script_id, script_params,
container.portal_url.getPortalObject().changeSkin(None)
return script
def removeZODBPythonScript(container, script_id):
"""
Removes a Python script `script_id` in the given `container`.
"""
container.manage_delObjects([script_id])
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