[Zope] a newbie in trouble with tree tag and sql methods

Phillip J. Eby pje@telecommunity.com
Sun, 04 Jul 1999 14:52:31 -0500


At 07:52 PM 7/4/99 +0300, Lauri Posti wrote:
>
>and tree tag is:
><!--#with "_.namespace(obj_id=0)"-->
> <!--#tree branches_expr="query(param=obj_id)" single=0-->
>  <!--#var name-->,<!--#var obj_id-->
> <!--#/tree-->
><!--#/with-->

Change to:
<!--#tree id=obj_id branches_expr="query(param=obj_id)" single=0-->

And you should be fine.  The problem is that without the id= setting, Zope
doesn't know how to tell one object from another when expanding/contracting
branches.