[Dev] Re: onItemLoad not getting called
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.
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.
> 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.
>> 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?
>> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>> Open Source Applications Foundation "Dev" mailing list
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> Open Source Applications Foundation "Dev" mailing list
More information about the Dev