Re: [Zope-dev] Zope 2.7.0 b3 regressions

2003-12-08 Thread Paul Winkler
On Mon, Dec 08, 2003 at 07:14:28PM +0100, Stefan H. Holek wrote: > After reading this paragraph for the third time I realized you have a > very good point here. > > But > > > "Relative" in this context refers to the concept of a "relative path" > as used in rfc1808, not to a relationship with

Re: [Zope-dev] Zope 2.7.0 b3 regressions

2003-12-08 Thread Dieter Maurer
Stefan H. Holek wrote at 2003-12-8 19:14 +0100: > ... >So, what do we want "relative" to mean for absolute_url? I spelled it out more precisely in a recent post (after rereading RFC2693). In my view "'/' + obj.absolute_url(1)" should implement the "absolute path" relative URL for "obj" (as defined

Re: [Zope-dev] Zope 2.7.0 b3 regressions

2003-12-08 Thread Stefan H. Holek
After reading this paragraph for the third time I realized you have a very good point here. But "Relative" in this context refers to the concept of a "relative path" as used in rfc1808, not to a relationship with a Zope object. It is meant for use in situations such as redirection to a secur

Re: [Zope-dev] Zope 2.7.0 b3 regressions

2003-12-03 Thread Dieter Maurer
Stefan H. Holek wrote at 2003-12-3 15:25 +0100: > No, no and 3 times no! The fix was done by Evan and is CORRECT. > absolute_url () does not (and should not!) know anything about CMF or > portals or whatever else! Right... > It MUST however return correct results in all possible VH situati

Re: [Zope-dev] Zope 2.7.0 b3 regressions

2003-12-03 Thread Lennart Regebro
Please excuse my impatiance, but sometimes I just think it's obvious that I'm right, and that people don't listen. My experience of this is that I'm wrong in at least half of the cases, so that is probably what has happened now too. However, I took a look at the issue, and ended up with the follow

Re: [Zope-dev] Zope 2.7.0 b3 regressions

2003-12-03 Thread Lennart Regebro
From: "Stefan H. Holek" <[EMAIL PROTECTED]> > It MUST however return correct results in all possible VH situations and > this is what the fix addresses. Well, the problem is determining what the heck is "correct". :-) Which is why you need a whole bunch of methods. absolute_url seems confused on

Re: [Zope-dev] Zope 2.7.0 b3 regressions

2003-12-03 Thread Jens Vagelpohl
If you need anything CMF specific use the portal_url tool. I do not see why a basic infrastructure method like absolute_url() should know anything about portals at all. I have to admit I did not look deeply, but Stefan's notion that absolute_url is a basic infrastructure method that should not h

Re: [Zope-dev] Zope 2.7.0 b3 regressions

2003-12-03 Thread Stefan H. Holek
Yuppie! No, no and 3 times no! The fix was done by Evan and is CORRECT. absolute_url () does not (and should not!) know anything about CMF or portals or whatever else! It MUST however return correct results in all possible VH situations and this is what the fix addresses. Please forget about

Re: [Zope-dev] Zope 2.7.0 b3 regressions

2003-12-03 Thread Lennart Regebro
From: "Yuppie" <[EMAIL PROTECTED]> > 1.) absolute_url(relative=1) behaves different > -- > > 'relative' was changed from 'relative to site object' to 'relative to > server root'. This is an API change and breaks Products like CMF. > > See

[Zope-dev] Zope 2.7.0 b3 regressions

2003-12-03 Thread Clemens Robbenhaar
> > 1.) absolute_url(relative=1) behaves different > -- > > 'relative' was changed from 'relative to site object' to 'relative to > server root'. This is an API change and breaks Products like CMF. > > See

[Zope-dev] Zope 2.7.0 b3 regressions

2003-12-03 Thread Yuppie
Hi! Migrating a CMF Site from Zope 2.6 to Zope 2.7.0 b3, I stumbled over these two Zope 2.7 issues: 1.) absolute_url(relative=1) behaves different -- 'relative' was changed from 'relative to site object' to 'relative to server root'. This is an API ch