[Zope3-dev] Re: Apache rewrite rules and URLs: an experiment

Jim Fulton jim at zope.com
Wed Oct 27 09:40:00 EDT 2004

Stephan Richter wrote:
> On Wednesday 27 October 2004 03:10, Peter Mayne wrote:
>>Now that you've mentioned it, the book has several mentions of
>>context/++resource++RESOURCENAME, but none of context/@@/RESOURCENAME. I
>>tried playing with this a while back, but I think I was trying too hard
>>with "string:" and "${" etc.
> context/@@/RESOURCENAME is just a shortcut for 
> context/++resource++RESOURCENAME, just like context/@@VIEWNAME is a shortcut 
> for context/++view++VIEWNAME.

No, it isn't.  /@@ looks for a view that has an empty name. This view is only
defined on sites and provides traversal to resources.

++resource++name should *only* be used in zpt to get a resource object
to get it's URL so that you can link to it.  The str of a resource
object will use nearestsite/@@/resourcename.


Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org

More information about the Zope3-dev mailing list