[Zope-dev] aq_base in DTML? Maybe 'fix' ExtensionClass?
Chris Withers
chrisw@nipltd.com
Thu, 14 Sep 2000 15:56:48 +0100
Carl Robitaille wrote:
> It's looks like aq_base is not available.
Yes, apparently it's not available in DTML for security reasons :-(
You could write a really small external method to get it for you:
<UNTESTED>
def ex_aq_base(object):
return getattr(object,'aq_base',object)
</UNTESTED>
Your other option is to stick it in the colelctor and hope Jim Fulton or
someone else who understands it gets round to 'fixing' the
ExtentionClass WRT to == and acquisition wrappers :-S
cheers,
Chris