Re: FIXED: Re: [Zope] URL0 returns index_html not index.html

2005-08-24 Thread Mark Barratt
John Eikenberry wrote: Mark Barratt wrote: A text substitution covers both cases: tal:attributes="href python:context.REQUEST['URL0'].replace('index_html','index.html')+'/source.html'" Wouldn't this just result in "[path]/index.html/source.html"? Do you want the index.html in the URL to s

Re: FIXED: Re: [Zope] URL0 returns index_html not index.html

2005-08-24 Thread John Eikenberry
Mark Barratt wrote: > Well, no, because some of the objects I want to append /source.html to > are not called index.html (but that *is* how we did it for another site > and it works as you say). > > A text substitution covers both cases: > > tal:attributes="href > python:context.REQUEST['URL0

FIXED: Re: [Zope] URL0 returns index_html not index.html

2005-08-19 Thread Mark Barratt
John Eikenberry wrote: Mark Barratt wrote: I can vaguely see why this is happening. My question: is there a straightforward way of making the links (and error reports) return the actual page address? By actual page address you want the URL with index.html instead of index_html? Given your

Re: [Zope] URL0 returns index_html not index.html

2005-08-18 Thread Dieter Maurer
Mark Barratt wrote at 2005-8-17 17:41 +0100: >Zope 2.7.4 on Debian > >DTML method index_html in the root says Do you know, that this is equivalent to the simpler ""? >A link in a page template to > >tal:attributes="href string:${context/REQUEST/URL0}/source.html > >where the page is addressed by

Re: [Zope] URL0 returns index_html not index.html

2005-08-18 Thread John Eikenberry
Mark Barratt wrote: > Zope 2.7.4 on Debian > > DTML method index_html in the root says > > A link in a page template to > > tal:attributes="href string:${context/REQUEST/URL0}/source.html URL0 always(?) includes the ending published object (eg. index_html). Normally if you don't want this you

[Zope] URL0 returns index_html not index.html

2005-08-17 Thread Mark Barratt
Zope 2.7.4 on Debian DTML method index_html in the root says A link in a page template to tal:attributes="href string:${context/REQUEST/URL0}/source.html where the page is addressed by [path]/ and is actually at [path]/index.html returns [path]/index_html/source.html I can vaguely see why t