[Zope] How to see if two objects are the same (minor fix)

Ron Bickers rbickers@logicetc.com
Wed, 11 Oct 2000 14:36:06 -0400


**** From my previous post, it looked like the parent was changing.  I had
the first two lines swapped.  Fixed below.

----

I want to see if an object is the one aqcuired from the root, but I'm
hitting walls.

  <dtml-var "PARENTS[-1].myObject">
  <dtml-var "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