[Zope-dev] Reading contents of a Page Template

Paul Winkler pw_lists at slinkp.com
Mon Aug 18 21:12:03 EDT 2003


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)



More information about the Zope-Dev mailing list