[Zope] (un)restrictedTraverse bug
Dragos Chirila
d.chirila@bucarest.finsiel.ro
Thu, 30 Jan 2003 05:26:30 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0037_01C2C820.2513D2C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi
In the root i have a folder called 'xx yy'
In a dtml MEthod i have the following line : <dtml-var =
"restrictedTraverse('xx yy').id">
I get an error :
Traceback (innermost last):
File D:\ZOPEFA~1\testar\lib\python\ZPublisher\Publish.py, line 150, in =
publish_module
File D:\ZOPEFA~1\testar\lib\python\ZPublisher\Publish.py, line 114, in =
publish
File D:\ZOPEFA~1\testar\lib\python\Zope\__init__.py, line 159, in =
zpublisher_exception_hook
(Object: Examples)
File D:\ZOPEFA~1\testar\lib\python\ZPublisher\Publish.py, line 100, in =
publish
File D:\ZOPEFA~1\testar\lib\python\ZPublisher\HTTPResponse.py, line =
259, in setBody
File D:\ZOPEFA~1\testar\lib\python\ZPublisher\HTTPResponse.py, line =
492, in notFoundError
NotFound: (see above)
WHY IS THAT ???????????
Dragos
------=_NextPart_000_0037_01C2C820.2513D2C0
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>In the root i have a folder called 'xx=20
yy'</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>In a dtml MEthod i have the following =
line :=20
<dtml-var "restrictedTraverse('xx yy').id"></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I get an error :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>Traceback (innermost last):<BR> File=20
D:\ZOPEFA~1\testar\lib\python\ZPublisher\Publish.py, line 150, in=20
publish_module<BR> File=20
D:\ZOPEFA~1\testar\lib\python\ZPublisher\Publish.py, line 114, in=20
publish<BR> File D:\ZOPEFA~1\testar\lib\python\Zope\__init__.py, =
line 159,=20
in zpublisher_exception_hook<BR> (Object: =
Examples)<BR> =20
File D:\ZOPEFA~1\testar\lib\python\ZPublisher\Publish.py, line 100, in=20
publish<BR> File =
D:\ZOPEFA~1\testar\lib\python\ZPublisher\HTTPResponse.py,=20
line 259, in setBody<BR> File=20
D:\ZOPEFA~1\testar\lib\python\ZPublisher\HTTPResponse.py, line 492, in=20
notFoundError<BR>NotFound: (see above)<BR></DIV>
<DIV><FONT face=3DArial size=3D2>WHY IS THAT ???????????</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Dragos</FONT></DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0037_01C2C820.2513D2C0--