[ZCM] [ZC] 1730/ 1 Request "aq_parent is not Available in ZPT when Content-Type is not text/html"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Mon Mar 21 08:45:29 EST 2005


Issue #1730 Update (Request) "aq_parent is not Available in ZPT when Content-Type is not text/html"
 Status Pending, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1730

==============================================================
= Request - Entry #1 by Anonymous User on Mar 21, 2005 8:45 am

bug is similar to 
http://www.zope.org/Collectors/Zope/436

To replicate the error create Folder. inside it create a Page Template with a text:
------------------------------------
<test xmlns:tal="http://xml.zope.org/namespaces/tal">
  <parent tal:content="here/aq_parent"
   tal:on-error="error">parent</parent>
</test>
------------------------------------
If Content-Type is set to "text/html" the code will work. If Content-Type is set to "text/xml" (or anything besides text/html) the error: "aq_parent not found in u'here/aq_parent'" will be displayed.
------------------------------------
Note: if "here/aq_parent" is replaced with "python:here.aq_parent" the code works fine for any Content-Type.
==============================================================



More information about the Zope-Collector-Monitor mailing list