[Zope-dev] Overriding __getattr__ for requests only.

Pavlos Christoforou pavlos@gaaros.msrc.sunysb.edu
Fri, 12 Nov 1999 17:30:30 -0500 (EST)


On Fri, 12 Nov 1999, Jeff K. Hoffman wrote:

> /
>   baseline/
>     index_html
>     content/
>       paragraph_a
>       paragraph_b
>     images/
>       image_a
>       image_b
>     variant1/
>       content/
>         paragraph_a
>       images/
>         image_b
>     variant2/
>       content/
>         paragraph_b
>       images/
>         image_a
> ---
> 
> Such that navigating to /baseline/index_html shows paragraph_a,
> paragraph_b, image_a, and image_b. I also need to be able to navigate to
> /baseline/variant1 and see the same index_html, this time referencing the
> "overloaded" paragraph_a and image_b. The same for variant2, with
> paragraph_b and image_a.

Assuming index_html is a *DTML Method* I think something like this might
work:

<dtml-in 'content.objectValues()'>
<do something with paragraphs>
</dtml-in>

similarly for image.

Have-a-feeling-I-missed-the-point'ly

Pavlos