[Gajim-devel] [PATCH] publisher/subscriber in common/events.py (+ decoupling from systray.py)
Yann Le Boulanger
asterix at lagaule.org
Tue Mar 20 19:33:59 CET 2007
Mikhail Gusarov wrote:
> Twas brillig at 10:05:06 11.03.2007 UTC+01 when Yann Le Boulanger did gyre and gimble:
>
> YLB> about your pps: you want systray (and other classes that would use this
> YLB> event system) to be a child of a new class that will contain some general
> YLB> code to register / unregister listener ? that sounds a good idea
>
> Yes. Probably it's more "pythonic" to create just generic Event class, instances
> of which act like this:
>
> a = Event(...)
> a.subscribe(handler)
> a.fire()
> ...
>
that sounds a good idea. I wait your patch :)
thanks,
--
Yann
More information about the Gajim-devel
mailing list