Re: [Modeling-users] Notification Framework v0.5 released
Status: Abandoned
Brought to you by:
sbigaret
From: Thorsten K. <tk...@co...> - 2003-05-26 10:35:54
|
Hello, first of all I would like to thank Sebastien for his work on the nice frameworks. I've tested the new feature and it is possible now to add an observer with different methods for different Notifications. But it should be pointed out that one has to define a value for the key 'NOTIFICATION_CENTER_MULTIPLE_CALLBACKS_PER_OBSERVER' in the environment, in order to enable the new behaviour. Sebastien, thanks again for the fast response to the feature request, Have a nice day, yours kodi Sebastien Bigaret wrote: > Hi all, > > The NotificationFramework is a python implementation of the "Observer" > Design Pattern, allowing one-to-many dependency between objects even when > they have no idea of who and where the other objects live. > > This release fixes two important bugs implying: > > - addObserver() not reporting when an object tries to register two or > more different callbacks, > > - postNotification() copying the observers back to its own list, > making it grow and causing degradation of performance each time it > is called. > > It also offers an implementation for RFE#742511 allowing multiple > callbacks per observer. > > The modeling framework itself is not affected by these changes and did > not even triggered the bugs. However and since it may take advantages > of these changes in the future, you'll probably want to upgrade your > local copy. > > > -- Sébastien. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your application fit in a > relational database is painful, don't do it! Check out ObjectStore. > Now part of Progress Software. http://www.objectstore.net/sourceforge > _______________________________________________ > Modeling-users mailing list > Mod...@li... > https://lists.sourceforge.net/lists/listinfo/modeling-users > |