-----Original Message----- From: Service Informatique CHSR [mailto:chsrinfo@guetali.fr] Sent: Wednesday, April 21, 1999 7:18 AM To: zope Subject: [Zope] not to acquire from parent
Hello,
I trashed my archives, and I can't manage to remember this. If someone could remind me this one...
How can I test if an object is not acquired? I guess I have to test the existence of the object in aq_base.
<!--#with aq_base--><!--#if object--> ... <!--#/if--><!--#/with-->
hangs.
<!--#if "_.hasattr(PARENTS[0].aq_base, 'object')"-->
is always false.
Any other idea?
Hmm... I'm not sure if this is what your looking for, but if an object is not aquired, then it's not wrapped, if it's not wrapped, then it doesn't have the attributes aq_base, aq_self, and aq_parent. So: <!--#if "not object.aq_base"--> Then it's not an aquisition wrapped object This help? -Michel
Regards, Jephte CLAIN Service Informatique CHSR
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
participants (1)
-
Michel Pelletier