[Zope3-dev] browserDefault uses '@@' for containers
Garrett Smith
garrett at mojave-corp.com
Mon Sep 26 10:23:00 EDT 2005
On , zope3-dev-bounces+garrett=mojave-corp.com at zope.org wrote:
> Hi together
>
>> Behalf Of Fred Drake
>> Sent: Friday, September 23, 2005 4:13 AM
>> To: Gary Poster
>> Cc: Garrett Smith; zope3-dev
>> Subject: Re: [Zope3-dev] browserDefault uses '@@' for containers
>>
>> On 9/22/05, Gary Poster <gary at zope.com> wrote:
>>> I believe that the idea is that the container traverser wants to
>>> specify that the default view name is a view, not an object in the
>>> container. That is, if the default view is named index.html, and I
>>> have an object in the container named index.html, './index.html'
>>> will traverse to the object in the container while @@index.html will
>>> render the container view named 'index.html'. Sometimes you *want*
>>
>> That's right. At one point it wasn't doing that (as best I recall),
>> so the default view was traversing when it shouldn't. We decided to
>> change it specifically because it produced unexpected behavior.
>
> I'm running into a bug with this behavior.
>
> If I call myContainer/@@ or myContainer/ and get my registred
> index.html (template) view back. There is the following part
> rendered into the template '</'.
Does this extra text show up even if your template is empty? I.e. delete the template text and see what happens.
-- Garrett
More information about the Zope3-dev
mailing list