[Zope-CMF] Objects in portal_skins

Paul Winkler pw_lists@slinkp.com
Tue, 24 Jun 2003 17:54:37 -0400


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"):
   ...

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's SPAZ GARGANTUAN SHROOM!
(random hero from isometric.spaceninja.com)