Hi everyone,
I want to create a LocalFS with a script but I get the following
error:
Error Type: TypeError
Error Value: unsubscriptable object
here's the script (thanks to Casey Duncan!):
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')
TIA