Re: [Zope-dev] zope.traversing's ILocation behavior

2010-07-09 Thread Roger
Hi all Betreff: Re: [Zope-dev] zope.traversing's ILocation behavior On Jul 8, 2010, at 11:04 AM, Martijn Faassen wrote: I propose the following adjustment: try: container = context.__parent__ except AttributeError: container = ILocation(context).__parent__

Re: [Zope-dev] zope.traversing's ILocation behavior

2010-07-09 Thread Martijn Faassen
Hey, [zope.traversing absolute URL behavior] I've applied the fix to zope.traversing and added a test as well. It's released as zope.traversing. I've also updated the ZTK to use this version. (initially I used checkversions to update a few other packages too, namely zope.dublincore,

Re: [Zope-dev] zope.traversing's ILocation behavior

2010-07-09 Thread Hanno Schlichting
On Fri, Jul 9, 2010 at 2:03 PM, Martijn Faassen faas...@startifact.com wrote: [zope.traversing absolute URL behavior] I've applied the fix to zope.traversing and added a test as well. It's released as zope.traversing. I've also updated the ZTK to use this version. Thanks! (initially I used

Re: [Zope-dev] zope.traversing's ILocation behavior

2010-07-09 Thread Fred Drake
On Fri, Jul 9, 2010 at 9:08 AM, Hanno Schlichting ha...@hannosch.eu wrote: I think zope.dublincore causes the breakage in some zope.app packages. This one's a sticking point for a large application here as well (one where we're trying to move to the ZTK as the base). I think I'm sticking to

[Zope-dev] zope.traversing's ILocation behavior

2010-07-08 Thread Martijn Faassen
Hi there, in zope.traversing.browser.absoluteurl there was a change a while back that breaks my code, now that I'm upgrading to it. The code in the absolute URL generation code used to be this: container = getattr(context, '__parent__', None) This simply gets the __parent__ of the

Re: [Zope-dev] zope.traversing's ILocation behavior

2010-07-08 Thread Hanno Schlichting
On Thu, Jul 8, 2010 at 5:04 PM, Martijn Faassen faas...@startifact.com wrote: The fix in my code was to make my model provide ILocation itself, so that it would adapt itself and therefore avoid the proxy. I think that might be correct but at the same time is really obscure; in my code the

Re: [Zope-dev] zope.traversing's ILocation behavior

2010-07-08 Thread Gary Poster
On Jul 8, 2010, at 11:04 AM, Martijn Faassen wrote: I propose the following adjustment: try: container = context.__parent__ except AttributeError: container = ILocation(context).__parent__ +1 Gary ___ Zope-Dev maillist -