[PEAK] Using peak.model as an observer subject

Phillip J. Eby pje at telecommunity.com
Wed Sep 1 12:13:10 EDT 2004

At 11:08 AM 9/1/04 -0500, Doug Quale wrote:
>What is the recommended way to make peak.model instances subjects in
>the observer pattern?  I see that peak.events provides sophisticated
>event handling including publish/subscribe, but I'm not sure how to
>make use of it with peak.model.
>I want to use peak.model as the model in MVC so I need notification of

Currently, you need to override the '_onLink'/'_onUnlink' methods of the 
features involved in order to do anything like this.

The long-term plan is that peak.storage will provide some kind of event 
support, but for right now this is the only way to do it.

More information about the PEAK mailing list