[maemo-community] Brainstorm: useful?

From: Oskari Kokko oskari.kokko at iki.fi
Date: Fri Dec 11 15:33:47 EET 2009
Dave Neary wrote:
> Hi,
> 
> Oskari Kokko wrote:
>> Well, cron-job is the only reasonable way to trigger this kind a check.
> 
> A check when someone votes wouldn't be easier?
> 
> 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.

But, this one is allready handled in frontpage, where we query all the
ideas in sandbox.

What I mean about the cron-job being the only reasonable way, is that
doing that kind a things in cron has been sort of the "way to do it" in
midgard.

> 
> Cheers,
> Dave.
> 


-- 
Oskari "Osku" Kokko
oskari.kokko at iki.fi
+35850 3838 513
More information about the maemo-community mailing list