[Zope] problem with superValues

Andreas Jung Andreas Jung <lists@andreas-jung.com>
Sat, 08 Mar 2003 18:32:18 +0100


--On Samstag, 8. M=E4rz 2003 17:00 +0100 Steffen Hausmann=20
<steffen@hausmann-family.de> wrote:

> On Fri, Mar 07, 2003 at 02:20:37PM -0500, Jens Vagelpohl wrote:
>> during __init__ your object has no acquisition content. you cannot use
>> acquisition at that point in time.
>
> How can I check (without raising an error) whether an object has an
> acquisition context or not.
>

There is no reason to check for the acquisition context. As Jens wrote, the =

context
is not available during __init__(). That's a fact. To perform=20
post-__init__()
actions *inside* the acquisition context, you should define your own
manage_afterAdd() method.

-aj