[Zope] Manage_addLocalFS
Florent Guillaume
fg@nuxeo.com
Wed, 15 May 2002 14:40:27 +0000 (UTC)
> context.manage_addFolder(folderid, foldertitle)
> product = context[folderid].manage_addProduct['PageTemplates']
> product.manage_addPageTemplate('index_html', foldertitle, file)
>
> product.manage_addProperty('onsite_only',1,'boolean')
> product.manage_addProperty('status','statustype','selection', 'private') #
> works up to here
> if inc_images:
> product.manage_addProduct['LocalFS'].manage_addLocalFS('images',
> 'images', '/www/doc/images')
You probably want:
folder = context[folderid]
folder.manage_addProduct['LocalFS'].manage_addLocalFS('images', 'images', '/www/doc/images')
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com