[Cosmo-dev] The topic is....topics!
br at osafoundation.org
Thu Jan 4 11:22:26 PST 2007
We've all agreed on the fact that we need some good standard way of
broadcasting application level events, and that topics is probably a
good fit. Up till now we haven't done too much with that.
There is right now a problem that I need to solve, and I feel that
topics (or something like it) is the only right way to do it. And
the easiest probably.
Within the collection details dialog box, you can change the display
name of a collection. The problem is, references to that collection
do not get updated. I could write code in the dialog box which goes
and updates all the places that need to be updated (right now I know
of two - the collection selector and and Cal.currentCollection) but
that is sort of ugly.
What I'd like to do is publish a "CollectionChanged" event or
something and have relevant parties subscribe and update themselves
as necessary. This is a pretty easy, low-impact thing to implement
and even if it's not perfect, it gets the ball rolling with this
stuff and forwards the conversation.
The only thing I don't like is that the dialog box code will be doing
the publishing. Ideally the thing that talks to the server would be
publishing the topic. But this is hard right now with the way we are
doing JSON-RPC stuff.
If anyone strongly objects, let me know, or else I'm just going to go
ahead and see how this works out.
More information about the cosmo-dev