I want to see if an object is the one aqcuired from the root, but I'm hitting walls. <dtml-var "myObject"> <dtml-var "PARENTS[-1].myObject"> <dtml-var "PARENTS[-1].myObject is myObject"> This returns the following when in the root folder context: <TinyTable instance at 8684ad8> <TinyTable instance at 8684ad8> 0 It returns the following in a folder where there is another myObject: <TinyTable instance at 8684ad8> <TinyTable instance at 86709f8> 0 What am I missing in the comparison? Thanks! _______________________ Ron Bickers Logic Etc, Inc. rbickers@logicetc.com
Ok.. a very simple question. How do you do a if statement with an 'and'. If this, and that.. Was just asked of me and I had really not come up against it in Zope. (must be Wednesday) Thanks, J
<dtml-if "this==1 and that==0"> ----- Original Message ----- From: "J. Atwood" <jatwood@bwanazulia.com> To: <zope@zope.org> Sent: Wednesday, October 11, 2000 10:15 PM Subject: [Zope] If/And statements?
Ok.. a very simple question.
How do you do a if statement with an 'and'. If this, and that..
Was just asked of me and I had really not come up against it in Zope.
(must be Wednesday)
Thanks, J
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
<dtml-if "cond1 and cond2"> shorthand for <dtml-if expr="cond1 and cond2"> i.e. everthing inside expr= is evaluated as a python expression in the current namespace. --jfarr ----- Original Message ----- From: "J. Atwood" <jatwood@bwanazulia.com> To: <zope@zope.org> Sent: Wednesday, October 11, 2000 2:15 PM Subject: [Zope] If/And statements?
Ok.. a very simple question.
How do you do a if statement with an 'and'. If this, and that..
Was just asked of me and I had really not come up against it in Zope.
(must be Wednesday)
Thanks, J
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
J. Atwood -
Jonothan Farr -
Phil Harris -
Ron Bickers