-----BEGIN PGP SIGNED MESSAGE-----
On 22 Jun 2006, at 15:08, LESUEUR Frédéric wrote:
i have a question about the "_setCacheHeaders" methods inside this
Why content is set to aq_parent and not the object itself ?
The test of a policy is make with parent of object not this object. If
i have a FSImage, the test is make with this context parent and no
http cache is set.
In my opinion content must be set to context obj, like that:
Please look at how it is being invoked inside e.g. CMFCore/FSFile.py
or CMFCore/FSImage.py. What gets passed into _setCacheHeaders is
*not* the Image or File, but a so-called view emulator. Its parent is
indeed the Image or File itself, so the function works correctly.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
-----END PGP SIGNATURE-----
Zope-CMF maillist - Zope-CMF@lists.zope.org
See http://collector.zope.org/CMF for bug reports and feature requests