See below,
Hello!
On Thu, Jun 26, 2008 at 2:29 PM, Marius Dumitru Florea < [email protected]> wrote:
Maybe this http://tinyurl.com/3hzmjd can help. It's the ActivityStream implementation for Curriki. It uses the Notification System. Take a look.
Thanks. I took a quick look, and I saw that the code there seems to be trying to guess which is the event by inspecting the objects and properties of the documents, is that right?
Unfortunately, yes.
If it is like that, why is the "event" int parameter there anyway? I thought it was his "job" to inform this.... if he always come with the same value it looks a bit weird.
I've asked my self the same question: http://tinyurl.com/66o5yz
Anyway, I'm guessing the interface was thought this way to allow this implementation in the future, but currently is not implemented... is it so?
I'd say it's rather a bug.
In this case, I might use the same "guessing techniques" shown there in my code too.
You should first take a look at Vincent's observation component. If it doesn't help then I can't see other option than to use a "guessing technique" :(
Thank you!
You're welcome! Marius
-- Tiago Rinck Caveden http://caveden.multiply.com _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users