RE: [Zope] Acquisiton Wrappers bite ;-)

2000-10-11 Thread Ron Bickers

> -Original Message-
> From: Chris Withers [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 11, 2000 3:16 PM
> To: Ron Bickers
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Zope] Acquisiton Wrappers bite ;-)
>

> > 
>
> ...this one will return true in the next version of Zope, in the above
> example...
>
> To do comparisons like this, though, you really need to be in an
> external method or other unrestricted python so you can get access to
> .aq_base, which is the real object you're dealing with...

Thanks for the info.

So, is there another way in DTML I can see if an object was acquired from
PARENTS[-1] or not?  Is there a way to check an objects container out of
context?

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Acquisiton Wrappers bite ;-)

2000-10-11 Thread Chris Withers

Ron Bickers wrote:
> This returns the following when in the root folder context:
> 
>   
>   
>   0

the above is a bit misleading ;-)

The two objects aren't actually at the same address 'cos your comparison
is actually of the acquisiton wrappers that are wrapping your TinyTable
object...

> 

This comparison will never return true for that reason...

> 

...this one will return true in the next version of Zope, in the above
example...

To do comparisons like this, though, you really need to be in an
external method or other unrestricted python so you can get access to
.aq_base, which is the real object you're dealing with...

have fun,

Chris :-)

___
Zope maillist  -  [EMAIL PROTECTED]
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 )