creating folders in a cps site when importing profile
"Winterflood, Jonathan" <[email protected]>
| Newsgroups | gmane.comp.web.zope.cps.devel |
|---|---|
| Message-ID | <2A5D32A4E4678A4D8A8AF34E3B0A785F26DDC5@CORPMAIL31.corp.capgemini.com> |
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.
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel