[CPS-devel] creating folders in a cps site when importing profile

Winterflood, Jonathan jonathan.winterflood at capgemini.com
Tue Mar 13 16:43:41 CET 2007


Hi all,
 
My product is designed as a profile to be imported onto a CPSDefault site, and I need to create some 'Folder's to hold some data it uses
I'd like to create them when the import is done, but I can't figure out where, or which code to use for it
 
So far the folders were created the first time they were needed (messy, needs a test for every use, breaks if the first user isn't admin etc.) with the following code:
context.portal_url.getPortalObject().manage_addProduct['OFSP'].manage_addFolder('DBR_data')
 
I'm guessing I should do it in the import method for the Tool (based on the vogon tool), but then the context isn't the same (obviously..)
Any pointers would be appreceated :)
 
 
TIA,
Jonathan


This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20070313/d7da4d08/attachment.htm



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.