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



Marie Robichon

Web Task Force
European Synchrotron Radiation Facility
BP 220
38043 Grenoble Cedex
France

http://www.esrf.fr

Tel: (33) 04 76 88 21 86
Fax: (33) 04 76 88 24 27