[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-dev
Subject:    Re: [Zope-dev] Reading contents of a Page Template
From:       Paul Winkler <pw_lists () slinkp ! com>
Date:       2003-08-19 0:12:03
[Download RAW message or body]

On Mon, Aug 18, 2003 at 03:05:44PM -0500, J Cameron Cooper wrote:
> The condition check is pretty primitive. Probably a better one would 
> check for the presence of the objectValues method like
> 
> tal:define="folderish nocall:item/objectValues"
> tal:condition="folderish | nothing"

That won't work as intended, you'll usually be able to acquire 
objectValues from the parent folder.

You might instead try:
tal:condition="item/isPrincipiaFolderish | nothing"

-- 

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

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic