[ZCM] [ZC] 125/ 2 Reject "ZPT + ParsedXML acquisition bug"
Collector: Zope Bugs and Patches ...
zope-coders@zope.org
Fri, 15 Feb 2002 14:49:41 -0500
Issue #125 Update (Reject) "ZPT + ParsedXML acquisition bug"
Status Rejected, Zope/bug medium
To followup, visit:
http://collector.zope.org/Zope/125
==============================================================
= Reject - Entry #2 by evan on Feb 15, 2002 2:49 pm
Status: Pending => Rejected
ZPT path traversal tries item access if attribute access fails. To force what you want, use "structure python:a.pt()".
________________________________________
= Request - Entry #1 by Anonymous User on Jan 6, 2002 5:49 pm
As described in <http://lists.zope.org/pipermail/zpt/2001-December/002560.html>, the following code:
{div tal:repeat="a python:here.xml[0].getElementsByTagName('a')"}
{div tal:content="structure a/pt"}...</{div}
{/div}
tries to do 'a.__getitem__(int(pt))' (i.e. get the 'int(pt)'-th thild node of node 'a'), although 'pt' is simply a ZPT that should be applied to the node 'a'.
Note that this error does not occur when I'm logged in as manager and view the page, but the error does occur when I'm not logged in. (Which is weird.)
==============================================================