[Zope] add LocalFS in python

Michael michael.bleijerveld at tiscali.nl
Thu Oct 16 12:10:02 EDT 2003


Hi,

When I try the following python script the message 'TypeError:
unsubscriptable object' appears.

Python script

container.manage_addProduct['LocalFS'].manage_addLocalFS('test','test','c:\t
emp\test3')

Traceback (innermost last):
  Module ZPublisher.Publish, line 98, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Shared.DC.Scripts.Bindings, line 252, in __call__
  Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 315, in _exec
  Module Script (Python), line 1, in createLocal
   - <PythonScript at /Smartstorage/createLocal>
   - Line 1
  Module Products.LocalFS.LocalFS, line 1255, in manage_addLocalFS
  Module App.FactoryDispatcher, line 103, in manage_main
TypeError: unsubscriptable object

Regards,

Michael





More information about the Zope mailing list