[Dev] Re: onItemLoad not getting called
Andi Vajda
vajda at osafoundation.org
Thu Feb 17 18:44:01 PST 2005
And during the conversation John and I just had we discussed the possibility
of emulating the Cloneable or Serializable marker interface idea in Java by
making it an error to copy an item that didn't have an onItemCopy defined on
it. But no decision was made and, if we eventually decided on a change, it
would be past the 0.5 release.
Andi..
On Thu, 17 Feb 2005, John Anderson wrote:
> Hey Ted:
>
> The problem is that you also need to add your Python attribute initialization
> to onItemCopy, since when the ItemCollection is getting copied to the soup
> neither it's constructor nor it's onItemLoad is called.
>
> John
>
> Andi Vajda wrote:
>
>>
>> The onItemLoad(self, view) method needs to be defined on the class of the
>> item, not the Kind and is invoked when the item is loaded from the
>> repository, not during parcel loading.
>>
>> Andi..
>>
>> On Thu, 17 Feb 2005, John Anderson wrote:
>>
>>> I have an Item with multiple super kinds. One of my super kinds has an
>>> onItemLoad which isn't getting called when the item is loaded. Does this
>>> seem like a bug?
>>>
>>> John
>>>
>>>
>> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>>
>> Open Source Applications Foundation "Dev" mailing list
>> http://lists.osafoundation.org/mailman/listinfo/dev
>
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> Open Source Applications Foundation "Dev" mailing list
> http://lists.osafoundation.org/mailman/listinfo/dev
>
More information about the Dev
mailing list