[Zope] anyone? Help getting the correct URL from absolute_url or portal_url

Michael Havard nhavar@hotmail.com
Fri, 14 Mar 2003 20:04:59 +0000

Yes we have done this purposefully. The main app is served from Silverstream 
java appserver (soon to be transitioned to Websphere :) ). All of our 
reference content is in ZOPE. It's an internal web application so users are 
limited in bookmarking (security/HIPAA issues) and the other reasons that 
frames don't make sense for the general web populace don't factor in for us.

We have multiple instances of ZOPE running so unfortunately I can't hard 
code any urls. I have to rely on the CMF and ZOPE to return the correct path 
for images and items via the absolute_url property or whatever property will 
give the correct url.

>From: J Cameron Cooper <jccooper@jcameroncooper.com>
>To: zope@zope.org
>Subject: Re: [Zope] anyone? Help getting the correct URL from absolute_url 
>or portal_url
>Date: Fri, 14 Mar 2003 13:23:05 -0600
>>I have a webserver running on host:8200 which serves framed content. On 
>>occassion it loads one frame with content from my ZOPE server running on 
>>host:8300. When the ZOPE frame loads the links and icons within it are 
>>broken because they show up as http://host:8200/item instead of 
>>http://host:8300/item. If I refresh the URLS get corrected.
>>How do I get the correct URL the first time within a frameset?
>You're loading from the other server intentionally, right? Well, I can't 
>really say from experience, as I try to stay well away from frames, but 
>perhaps you need to explicitly put the basepath in the documents from the 
>foreign server:
><base href="http://host:8300/" />
>You should check to see if Zope has already put it there, though.
>Otherwise, maybe you need to put absolute urls in your images.
>       --jcc
>Zope maillist  -  Zope@zope.org
>**   No cross posts or HTML encoding!  **
>(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
>http://mail.zope.org/mailman/listinfo/zope-dev )

MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.