[Zope] Reversing acquisition?
Jeff K. Hoffman
jeff.hoffman@goingv.com
Thu, 22 Jun 2000 15:34:00 -0400 (EDT)
On Thu, 22 Jun 2000, Patrick Lewis wrote:
> Try changing /index_html as follows:
>
> <dtml-var standard_html_header>
> <table>
> <tr><td><dtml-var "PARENTS[0].text_object_1" fmt=structured-text>
> </td></tr>
> <tr><td><dtml-var "PARENTS[0].text_object_2" fmt=structured-text>
> </td></tr>
> </table>
> <dtml-var standard_html_footer>
>
> Basically force Zope to look in the current folder first.
Additionally:
Is your root index_html a DTML Method or a DTML Document?
If it's a DTML Method, it should work as you desire; DTML Methods are the
odd bird, and acquire differently than everyone else. DTML Methods
acquire other objects from the context in which they are called. This is
how standard_html_header and standard_html_footer work.
DTML Documents, however, acquire like every other Zope object, and will
behave as you have described: acquire text_object_1 and text_object_2
from the actual location of the DTML Document.
--Jeff
---
Jeff K. Hoffman 704.849.0731 x108
Chief Technology Officer mailto:jeff.hoffman@goingv.com
Going Virtual, L.L.C. http://www.goingv.com/