This helped me answer my own question:http://www.zope.org/Members/jwashin/convertPMtoPS. You need this line: container.manage_addProduct['PythonScripts'].manage_addPythonScript(id, REQUEST=None). I looked in the Zope book but it doesn't really explain manage_addProduct very well.