[Zope] dtml-tree: wrong branchesexpanded/collapsed
Ulla Theiss
u.theiss at eurodata.de
Mon Mar 7 06:41:08 EST 2005
Hallo list,
thank you for the helping.
Now, I've derived my class TestBranch from "OFS.SimpleItem", which does
have a method "getId()" and from "Persistent". The behaviour is much
better and reproducible - but still not correct: Clicking on one
plus-sign all the plus-signs of the chosen layer change to minus and are
expanded, nevertheless the branch belongs to the chosen sign or not.
In my example:
I have the branches:
a
b
c
Clicking on a the branches of b and c are expanded, too.
Do you have an idea, what I make wrong?
Again, many thanks in advance,
Ulla.
Dieter Maurer wrote:
>Ulla Theiss wrote at 2005-3-6 11:05 +0100:
>
>
>>I've a problem with dtml-tree.
>>When I click on the first "plus sign" the branches may be expanded, or
>>nothing may be happen or one of the other branches may be expanded. The
>>same behaviour occurs with the attempt to collapse or expand the other
>>branches.
>>
>>
>
>"dtml-tree" needs persistent (!) ids to get expansion/collapsing right.
>It has an attribute with which you can control how the "id" is
>determined. In your case, it probably should be "str".
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20050307/9d202bc9/attachment.htm
More information about the Zope
mailing list