17 Oct
2003
17 Oct
'03
3:45 p.m.
[ From: Michael]
When I try the following python script the message 'TypeError: unsubscriptable object' appears.
Python script
container.manage_addProduct['LocalFS'].manage_addLocalFS('test ','test','c:\temp\test3')
Before anything else, you need to escape the backslashes - manage_addLocalFS('test','test','c:\\temp\\test3') Remember, you are writing a Python expression, and backslashes in strings need to be escaped. Cheers, Tom P