Item hook methods

October 27th, 2004 at 12:19 pm (3 years, 9 months ago) by Andi Vajda under chandlerdb

The constructor on an Item instance is only invoked the first time the instance is created. It is not invoked as the item is re-instantiated when loaded from the repository.

When defined for the item’s class, the onItemLoad(self) method is invoked on the item when it is loaded from the repository.

Similarly, onItemUnload(self) is invoked on the item when it is about to be unloaded from a repository view, before being refreshed or during view pruning, for example.

And finally, onItemCopy(self, original) is invoked on an item copy when the original was copied.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Reddit

Leave a Reply