[Zope] create Catalog via PythonScript?

Dieter Maurer dieter@handshake.de
Fri, 4 Jul 2003 20:38:28 +0200


Bill Seitz wrote at 2003-6-30 14:35 -0700:
 > I'm going to want to create catalogs in a number of
 > folders. So I'd like a script - not only is it easier
 > to edit than an External Method, but it uses
 > acquisition so I can just put it at a top level and
 > then use the calling URL to determine the location.
 > 
 > But permissions are the problem: "You are not allowed
 > to access ZCatalog in this context"

Use the standard way to create objects:

    destinationFolder.manage_addProduct[ProductName].constructor(args)


Dieter