[Zope] Peculiar effects with SQL tree

Stephen Harrison stephen@nipltd.com
Wed, 9 Feb 2000 11:00:08 -0000


> I had similar problems with I set up a tree over an SQL method.  I
> don't recall exactly how I fixed it, but I can show you what I have:

Thanks for the help.  I tracked down the problem to the following bit 
of code:

>     <dtml-tree id=CatID branches_expr="CatCats(CatParent=CatID, Approved=1)">

To use your example, I had id='CatID' rather than id=CatID.  I had 
got this from an old mailing list message which refered to Anthony 
Baxters HowTo:
http://www.zope.org/Members/anthony/tree-coding-tricks
citeing the quotes as a correction to the code in the howto.

Ho hum...

Cheers,
Stephen

-- 
Stephen Harrison - stephen@nipltd.com
New Information Paradigms - www.nipltd.com