-----BEGIN PGP SIGNED MESSAGE-----
1. Add two filesystem zpts:
<h1>Here is the title</h1>
<x tal:replace="structure here/output_page_2" />
<h2>Here is the subtitle from template 2</h2>
2. Add a rule to the cpm as follows:
3. Make a request for <yoursite>/output_page_1
4. Note that the caching rule for output_page_2 is applied
This is because the cpm is called whenever a FSZPT is called - so
the call to the second template causes it to check it's rules again.
My question is, does this count as a bug?
I'm not sure this can be called a bug. It is true (and perfectly
normal) that rendering a filesystem page template will always call
the CPM. You're rendering both here. Since output_page_2 is rendered
last as it's calles from output_page_1 the rule for output_page_2
fires and will overwrite existing headers/add new headers according
to the rule that fires. The problem here is that both happen in the
same request, the rendering code does not distinguish betwen the
primary and the nested rendering.
-----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