[Zope] LocalFS manage_addFolder solution?

jensebaer jensebaer@hotmail.com
Thu, 5 Oct 2000 22:04:37 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_003F_01C02F18.409E2340
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,

I want to create an LocalFS object.

I use <dtml-call "manage_addLocalFS('localfsfolder', 'title', =
'/home/zope')"> but that doesn=B4t work.

Simular to <dtml-call "manage_addFolder('Folder', 'Tis is the title')"> =
that works



Error Type: NameError
 Error Value: manage_addLocalFS

Traceback (innermost last):
  File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line =
214, in publish_module
  File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line =
179, in publish
  File /home/zope/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, =
in zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line =
165, in publish
  File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line =
160, in mapply
    (Object: addlocalfs)
  File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line =
102, in call_object
    (Object: addlocalfs)
  File /home/zope/Zope-2.1.6-src/lib/python/OFS/DTMLMethod.py, line 150, =
in __call__
    (Object: addlocalfs)
  File =
/home/zope/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_String.py, line =
502, in __call__
    (Object: addlocalfs)
  File /home/zope/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_Util.py, =
line 335, in eval
    (Object: manage_addLocalFS('localfsfolder', 'title', '/home/zope'))
    (Info: manage_addLocalFS)
  File &lt;string&gt;, line 0, in ?
NameError: (see above)


Thanks=20
Jens


------=_NextPart_000_003F_01C02F18.409E2340
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I want to create an LocalFS =
object.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I use &lt;dtml-call=20
"manage_addLocalFS('localfsfolder', 'title', '/home/zope')"&gt; but that =
doesn=B4t=20
work.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Simular to &lt;dtml-call=20
"manage_addFolder('Folder', 'Tis is the title')"&gt;&nbsp;that=20
works</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Error Type: NameError<BR>&nbsp;Error Value: manage_addLocalFS</DIV>
<DIV>&nbsp;</DIV>
<DIV>Traceback (innermost last):<BR>&nbsp; File=20
/home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in =

publish_module<BR>&nbsp; File=20
/home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in =

publish<BR>&nbsp; File =
/home/zope/Zope-2.1.6-src/lib/python/Zope/__init__.py,=20
line 202, in zpublisher_exception_hook<BR>&nbsp;&nbsp;&nbsp; (Object:=20
ElementWithAttributes)<BR>&nbsp; File=20
/home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 165, in =

publish<BR>&nbsp; File=20
/home/zope/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 160, in=20
mapply<BR>&nbsp;&nbsp;&nbsp; (Object: addlocalfs)<BR>&nbsp; File=20
/home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 102, in =

call_object<BR>&nbsp;&nbsp;&nbsp; (Object: addlocalfs)<BR>&nbsp; File=20
/home/zope/Zope-2.1.6-src/lib/python/OFS/DTMLMethod.py, line 150, in=20
__call__<BR>&nbsp;&nbsp;&nbsp; (Object: addlocalfs)<BR>&nbsp; File=20
/home/zope/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_String.py, line =
502, in=20
__call__<BR>&nbsp;&nbsp;&nbsp; (Object: addlocalfs)<BR>&nbsp; File=20
/home/zope/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_Util.py, line =
335, in=20
eval<BR>&nbsp;&nbsp;&nbsp; (Object: manage_addLocalFS('localfsfolder', =
'title',=20
'/home/zope'))<BR>&nbsp;&nbsp;&nbsp; (Info: manage_addLocalFS)<BR>&nbsp; =
File=20
&amp;lt;string&amp;gt;, line 0, in ?<BR>NameError: (see above)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks </DIV>
<DIV>Jens</DIV>
<DIV>&nbsp;</DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_003F_01C02F18.409E2340--