[PEAK] sitemaps: <content> in non-root <location>
Radek Kanovsky
rk at dat.cz
Fri Jan 7 04:48:28 EST 2005
On Thu, Jan 06, 2005 at 12:42:36AM -0500, Phillip J. Eby wrote:
> >Variant 2 works now. It is necessary to keep 'clone_from' attribute in
> >Context instances:
>
> I think there's a simpler solution than either; the 'clone()' operation
> called inside Location.traverseTo() should simply become:
>
> context = ctx.clone(current=cont, viewHandler=self.viewHandler)
>
> This should do the right thing in the specific circumstances; i.e. ensure
> that the traversal into the container and beneath includes the current
> location's view definitions.
It works except one special case when container itself implements IViewService.
> A fix (with tests) is now in CVS.
Then the same fix should be applied to sitemaps.addHelper too.
Again, helper can implement IViewService directly.
> Sorry I didn't get to it sooner, but I've been a bit distracted with
> a variety of other things, such as negotiating some paying work, and
> helping to do year-end inventory at my wife's store.
I am absolutely unusable because of strong flu so everything goes
slower now :-(
RadekK
More information about the PEAK
mailing list