[Zope-CMF] Objects in portal_skins

Bert Vanderbauwhede Bert.Vanderbauwhede@UGent.be
Wed, 25 Jun 2003 09:14:36 +0200 (MEST)


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.


Bert Vanderbauwhede...
---
"What good is a movie titled 'Matrix' with no decent transforms.
 I at least expected an eigenvector or two somewhere in there. Pshaw."