[Zope] Re: Add Folders via PythonScripts [was] (no subject)

Maik Jablonski maik.jablonski@uni-bielefeld.de
Sun, 30 Mar 2003 19:30:26 +0200


vasanthsena x wrote:
> Can anyone tell me what OFSP is.

Please use subjects with meaning...

OFSP probably stands for Object File System Product

(taken from 
http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html#ftn.c37ac15c11b5b2c12).

It gives you a hook to the constructors defined in additional Zope-Products.

 > Also is it possible to
 > write a python script that adds new folders in zope.

You can use

context.manage_addFolder('test',title='Testfolder')

or

context.manage_addProduct['OFSP'].manage_addFolder('test1','Testfolder1')

Generally: If you want to call the constructor of a special product, in 
most cases something like this should work:

context.manage_addProduct['SpecialProduct'].manage_addSpecialProduct(id,title)


--Cheers, Maik