[Zope-CMF] Objects in portal_skins

Paul Winkler pw_lists@slinkp.com
Wed, 25 Jun 2003 17:34:53 -0400


On Wed, Jun 25, 2003 at 09:14:36AM +0200, Bert Vanderbauwhede wrote:
> On Tue, 24 Jun 2003, Paul Winkler wrote:
> 
> > On Tue, Jun 24, 2003 at 07:31:38AM +0200, Bert Vanderbauwhede wrote:
> > > I was thinking of something I could use as a test in a script or template.
> > > Methods like absolute_url() give me no indication if an object is located
> > > in portal_skins or one of its subfolders.
> >
> > hmm, well if you put it that way i can't resist :)
> >
> > if foo.absolute_url().count("portal_skins"):
> >    ...
> 
> Unfortunately, acquisition and skinning magic allows you to access objects
> in portal_skins without explicitly specifying the portal_skins in the
> path. And then your trick doesn't work.

ah, sorry, of course you're right.

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's FRED WITH EXTRA CHOCOLATE!
(random hero from isometric.spaceninja.com)