[maemo-community] Brainstorm: useful?

From: Dave Neary dneary at maemo.org
Date: Fri Dec 11 15:09:14 EET 2009
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();
}

Cheers,
Dave.

-- 
maemo.org docsmaster
Email: dneary at maemo.org
Jabber: bolsh at jabber.org

More information about the maemo-community mailing list