Robin Dunn <robin@alldunn.com> writes:
For even looser coupling you could use the pubsub module and then
Sending a message to all receivers results in subscribers for all
modules
server.sendMessage(topic=(),data="I'm a green")
This happens because __getTopicList returns ALL the topics when the
list is less than 0.
Topic.matches() doesn't seem to be the right place to work around
this. Skipping the second round of sending messages out when
len(topic) == 0 seems to be the cleanest fix.
···
--
Chris Green <cmg@dok.org>
Let not the sands of time get in your lunch.
Chris Green said:
Sending a message to all receivers results in subscribers for all
modules
server.sendMessage(topic=(),data="I'm a green")
This happens because __getTopicList returns ALL the topics when the
list is less than 0.
I'm not sure exactly what you're describing, but it could be how it's
specified to behave - ie, not a bug. But it's been a while since I've
looked at the code. I'll check it out.
Hmm - what _should_ the behavior be if a message is sent, essentially with
no topic?
Robb
···
Topic.matches() doesn't seem to be the right place to work around
this. Skipping the second round of sending messages out when
len(topic) == 0 seems to be the cleanest fix.
--
Chris Green <cmg@dok.org>
Let not the sands of time get in your lunch.
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org