RE: [Zope] Equality test: if sequence-item = document id
1 Jun
2001
1 Jun
'01
12:32 p.m.
From: Tim Cook [mailto:twcook@iswt.com]
This works. It has something to do with resolving the string representation of the object id. I often use something that I've found that works. I don't necessarily care why. Maybe someday? <vbg>
<dtml-let this_id=id> <dtml-in "PARENTS[0].objectIds('DTML Document')"> <dtml-if expr="_['sequence-item']==this_id"> <li><dtml-var sequence-item></li> <dtml-else></dtml-if> </dtml-in> </dtml-let>
I would say that it is because you take the ID's from 2 different namspaces. As soon as you go into a dtml-in another namespace gets popped onto the stack. When you set this_id outside th dtml-in you set it in the documents namespace. regards Max M
9074
Age (days ago)
9074
Last active (days ago)
0 comments
1 participants
participants (1)
-
Max Møller Rasmussen