Re: [Zope] context and URLs

2006-02-14 Thread Peter Bengtsson
On 2/14/06, Ole Johan Tennvassås <[EMAIL PROTECTED]> wrote: > Thanks, it really helped (but the syntax seems to be http://localhost:8080/somefolder/someobject"; someobject/absolute_url_path returns "/somefolder/someobject" As far as a browser is concern there's absolutely no difference. The advanta

Re: [Zope] context and URLs

2006-02-14 Thread Ole Johan Tennvassås
Thanks, it really helped (but the syntax seems to be On 2/14/06, Peter Bengtsson <[EMAIL PROTECTED]> wrote: This will workTextOn 2/13/06, Ole Johan Tennvassås < [EMAIL PROTECTED]> wrote:> Sorry for late reply - have been away.>> Cant get this to work!  I hope I can avoid to use an absolute URL pat

Re: [Zope] context and URLs

2006-02-13 Thread Peter Bengtsson
This will work Text On 2/13/06, Ole Johan Tennvassås <[EMAIL PROTECTED]> wrote: > Sorry for late reply - have been away. > > Cant get this to work! I hope I can avoid to use an absolute URL path. > What i want is, as you say, to let the server generate as much of the URL as > possible. To be mor

[Zope] context and URLs

2006-02-13 Thread Ole Johan Tennvassås
Sorry for late reply - have been away.Cant get this to work!  I hope I can avoid to use an absolute URL path.  What i want is, as you say, to let the server generate as much of the URL as possible. To be more spesific, the zpt whith the calling href (located in "folderA") calls a script with a cons

Re: [Zope] context and URLs

2006-01-30 Thread Lennart Regebro
On 1/29/06, Peter Bengtsson <[EMAIL PROTECTED]> wrote: > Instead of writing links like this:: > > object > > write them like this:: > > object Or, in 99% of the cases, you can simply say object -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-projec

Re: [Zope] context and URLs

2006-01-29 Thread Peter Bengtsson
Instead of writing links like this:: object write them like this:: object I know it's more typing but it will solve all your problems. I always let the server have a part in generating URLs and I never suffer from problems like this. On 1/29/06, Ole Johan Tennvassås <[EMAIL PROTECTED]> wrote

[Zope] context and URLs

2006-01-29 Thread Ole Johan Tennvassås
Im working on a zope application where i have several folders, all at the same level (not parent/children).  In one case a ZPT calls a script in another folder, which in turn calls another ZPT in the first folder again.  My problem is that the base (?) URL (context?) which Zope prepends to all obje