2 messages in com.googlegroups.pylons-discussRe: Ranking for all objects
FromSent OnAttachments
John27 Oct 2006 03:13 
Shannon -jj Behrens27 Oct 2006 11:53 
Subject:Re: Ranking for all objects
From:Shannon -jj Behrens (jjin@public.gmane.org)
Date:10/27/2006 11:53:06 AM
List:com.googlegroups.pylons-discuss

On 10/27/06, John <sanmateoquest-/E159@public.gmane.org> wrote:

Hello guys

I m having lots of fun with python it is like all of sudden I m unshackled from the days of zope.. Man it is a lot of fun. It is super simple and easy... Ok now to my question, I m trying to add a ranking feature to various objects in the system, the users, their posts, their media etc, suffice to say I have to rank a lot of objects. I can think of implementing this rudimentarily, add python code and copy to do everything.

Each object is a postgres db.. eg Table user { username, metadata, RANKING int4,

}

and so on... I cant but woefully look at Ruby_oN_rails guys adding ranking with just one line @act_as_votable and they are set.. no more bugs to fix, Do you guys have any ideas on how to do this, somehting similar to

@checkaccess in atuh also seems reasonable..

thanks a lot for your time and patience

keep rockin in the web/python world John

Hmm, I got this exact same question from anil.

By the way, since you're using PostgreSQL, it's interesting to note that PostgreSQL has a cute little inheritance feature that lets you have tables inherit columns. Of course, if you're using SQLAlchemy, you have other, neat inheritance options.

Happy Hacking! -jj