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'].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 source.html. This will work with Zope but
looks strange. Using URL1 instead of URL0 would leave the index[._]html
off the generated URL. 
 
 If you were working with zope projects there are other tricks you could
 pull, but it doesn't sound like you are doing this.
 
 I don't understand this: is a 'zope project' different from my project 
 using zope?

Opps. I meant a 'zope product', ie. a python based product.
 

-- 

John Eikenberry [EMAIL PROTECTED]
__
A society that will trade a little liberty for a little order
 will deserve neither and lose both.
  --B. Franklin
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


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 source.html. This will work with Zope but
looks strange. Using URL1 instead of URL0 would leave the index[._]html
off the generated URL. 
 


Only if the apparent address of the 'page' is [folder]/, and that is 
what I want. But it also works if the apparent address of the 'page' is 
pagename.html - in that case URL0 returns the correct complete path and 
the text substitution doesn't come into play. In all case I want to 
return /source.html of the target page so I can edit it in Mozile (not 
that I can yet, mind you).


best

--
Mark Barratt

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


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 current setup as described, redirecting would work.

dtml-call RESPONSE.redirect(URL1+'/index.html')


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'].replace('index_html','index.html')+'/source.html'




If you were working with zope projects there are other tricks you could
pull, but it doesn't sound like you are doing this.


I don't understand this: is a 'zope project' different from my project 
using zope?


Thanks to you and Dieter for the help


--
Mark Barratt

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )