<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=403113314-10052004>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=403113314-10052004>i want to add 
dynamically LocalFS Objects in a Plone site.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=403113314-10052004>So, in order to 
test,&nbsp;i hawe write a little python script like this :</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=403113314-10052004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=403113314-10052004>container.manage_addProduct['LocalFS'].manage_addLocalFS('test','test','/my_folder') 
<BR>print "ok"<BR>return printed<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=403113314-10052004>I get a weird 
failure : </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=403113314-10052004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=403113314-10052004>
<P>Traceback (innermost last): 
<UL>
  <LI>Module ZPublisher.Publish, line 163, in publish_module_standard 
  <LI>Module Products.PlacelessTranslationService.PatchStringIO, line 45, in 
  new_publish 
  <LI>Module ZPublisher.Publish, line 127, in publish 
  <LI>Module Zope.App.startup, line 203, in zpublisher_exception_hook 
  <LI>Module ZPublisher.Publish, line 100, in publish 
  <LI>Module ZPublisher.mapply, line 88, in mapply 
  <LI>Module ZPublisher.Publish, line 40, in call_object 
  <LI>Module Shared.DC.Scripts.Bindings, line 306, in __call__ 
  <LI>Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec 
  <LI>Module Products.PythonScripts.PythonScript, line 318, in _exec 
  <LI>Module None, line 1, in test<BR><B>&lt;PythonScript at 
  /test/projet/test&gt;</B><BR><B>Line 1</B> 
  <LI>Module Products.LocalFS.LocalFS, line 1376, in manage_addLocalFS 
  <LI>Module App.FactoryDispatcher, line 103, in manage_main </LI></UL>TypeError: 
unsubscriptable object (Also, an error occurred while attempting to render the 
standard error message.) </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=403113314-10052004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=403113314-10052004>My environement is : 
Redhat 7.2, Zope 2.7.0, Plone 2 and Python 2.3.3</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=403113314-10052004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=403113314-10052004>Thanks,</DIV></SPAN></FONT>
<P><FONT size=2><FONT face=Arial>Laurent </FONT></FONT></P></BODY></HTML>