[Zope3-Users] Re: A Few Questions re Namespaces

Martin Aspeli optilude at gmx.net
Fri Apr 14 06:59:14 EDT 2006


> 2. I finally found the "+" view in container/browser, but all
>     uses of it are as "/@@+/newitem.html".  I could have sworn
>     I saw the "+" used w/o the "@@" prefix someplace but can't
>     find it again.  Did I indeed imagine ever seeing
>     "/+/newitem.html"?

No, I've seen this too. As far as I understand, the @@ is optional, but  
useful to disambiguate views from other things. If you had an object in /  
called '+', /+ would find that, not the add view.

> 3. What happens if you register a utility or adapter with
>     the -exact- same criteria including the same name?  Does
>     a queryAdapter() lookup return the oldest or newest?
>     Is that a legitimate way of overriding, other than
>     using an overrides.zcml?

Did you try it?

Martin

-- 
(muted)



More information about the Zope3-users mailing list