13 Feb
2003
13 Feb
'03
9:46 p.m.
On Thu, Feb 13, 2003 at 10:27:11PM +0100, Volker Wend wrote:
Hello Folks,
I am developing an Page Template that should create a link depending on the content of that folder. If I find an index_html, I want a Link otherwise not.
I have a Python Script check4index_html:
return hasattr(context.aq_explicit,'index_html')
I think what you want is context.aq_base. foo.aq_explicit only partially unwraps foo. foo.aq_base completely unwraps foo. http://mail.zope.org/pipermail/zope-coders/2002-August/001646.html -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's DIRECTOR OF PERILOUS ! (random hero from isometric.spaceninja.com)