[Zope3-dev] Re: Apache rewrite rules and URLs: an experiment
Peter Mayne
PeterMayne at ap.spherion.com
Wed Oct 27 03:10:39 EDT 2004
Stephan Richter wrote:
> What about using:
> <a tal:attributes="href context/@@/z3logo.gif">
>
> I think this is the recommended way; will it do the right thing?
Nice one, Centurion. Like it. :-) There is a difference, though: this
produces a URL that includes the http://host/, whereas the others only
produce a /path URL. Personally I prefer just the /path, but I can't
think of a technical reason why just at the moment. :-/ Anyone? Bueller?
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.
Curiously enough, "context/@@/z3logo.gif" and
"context/++resource++z3logo.gif" each produce the same href string:
"http://wu/imdb/@@/z3logo.gif" or
"http://chmeee:8080/++skin++imdb/@@/z3logo.gif", depending on which way
you're coming from. (A quick look at
zope.app.publisher.browser.resource.Resource ... ah.)
I've quickly browsed through various classes: when I figure out how
namespace.namespaceLookup works, I'll get it. :-)
PJDM
--
Peter Mayne
Spherion Technology Solutions
Canberra, ACT, Australia
"You're given the form, but you have to write the sonnet yourself.
What you say is completely up to you." - Mrs. Whatsit
More information about the Zope3-dev
mailing list