Hi,

2009/12/11 Oskari Kokko <[email protected]>:
>> After recording a vote:
>> if (idea.karma >= 10){
>>   idea.state=UNDER_VOTE;
>>   idea.save();
>> }
> Well, we are talking about midgard here, where votes are different
> component than the brainstorm it self, so some of the things aren't that
> straightforward as you might think.

Not difficult at all, just make the brainstorm component watch
n.n.favourites creation and perform that activity in the watcher.
http://bergie.iki.fi/blog/midcom-and-content-update-notifications

Sorry about going to implementation details :-)

/Henri

-- 
Henri Bergius
Nemein - Web Craftsmanship
http://nemein.com
_______________________________________________
maemo-community mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-community

Reply via email to