[Zope] Manage_addLocalFS

Marie Robichon robichon@esrf.fr
Tue, 14 May 2002 17:01:23 +0200


--=====================_24641643==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

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 
--=====================_24641643==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
Hi everyone,<br>
<br>
I want to create a LocalFS with a script but I get the following
error:<br>
<br>
<b>Error Type: TypeError<br>
Error Value: unsubscriptable object<br>
<br>
<br>
</b>here's the script (thanks to Casey Duncan!):<br>
<br>
context.manage_addFolder(folderid, foldertitle)<br>
product = context[folderid].manage_addProduct['PageTemplates']<br>
product.manage_addPageTemplate('index_html', foldertitle, file)<br>
<br>
product.manage_addProperty('onsite_only',1,'boolean')<br>
product.manage_addProperty('status','statustype','selection', 'private')
# works up to here<br>
if inc_images:<br>
&nbsp;&nbsp;
product.manage_addProduct['LocalFS'].manage_addLocalFS('images',
'images', '/www/doc/images')<br>
<br>
TIA<br>
<br>
<br>
<br>
<div>Marie Robichon</div>
<br>
<div>Web Task Force</div>
<div>European Synchrotron Radiation Facility</div>
<div>BP 220</div>
<div>38043 Grenoble Cedex</div>
<div>France</div>
<br>
<div><a href="http://www.esrf.fr/" EUDORA=AUTOURL>http://www.esrf.fr</a></div>
<br>
<div>Tel: (33) 04 76 88 21 86</div>
Fax: (33) 04 76 88 24 27
</html>

--=====================_24641643==_.ALT--