Can anyone tell me what OFSP is.Also is it possible to write a python script that adds new folders in zope. Thanks, S. __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com
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.c37ac15c1...). 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
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.c37ac15c1...).
It gives you a hook to the constructors defined in additional Zope-Products.
Most of your standard Zope objects (File, Folder, Image, DTMLDocument et al.) are defined in lib/python/OFS Products cannot be registered from there, but only in the Products directory, so OFSP is in the Products directory to register those Products using the usual machinery. It also provides Versions. This can all be determined by looking at (1) the readme in OFSP or (2) the source there. --jcc
participants (3)
-
J Cameron Cooper -
Maik Jablonski -
vasanthsena x