Re: Repoze.what Implementing permission system based on reputation

2009-04-25 Thread karikrishni
This works.. Thank you Gustavo On Apr 25, 9:52 pm, karikrishni wrote: > Thank you Gustavo.. I yet to try your solutions.. four days gone for > GIDS India 2009.. I will integrate your ideas into my system..Thanks a > lot > > On Apr 23, 7:38 pm, Gustavo Narea wrote: > > > On Thursday April 23, 20

Re: Repoze.what Implementing permission system based on reputation

2009-04-25 Thread karikrishni
Thank you Gustavo.. I yet to try your solutions.. four days gone for GIDS India 2009.. I will integrate your ideas into my system..Thanks a lot On Apr 23, 7:38 pm, Gustavo Narea wrote: > On Thursday April 23, 2009 16:32:35 Gustavo Narea wrote: > > > By the way, if you may want to create the foll

Re: Repoze.what Implementing permission system based on reputation

2009-04-23 Thread Tom Longson (nym)
This reminds me of http://everything2.com/ (if you haven't been there, check it out already!) Good stuff guys! Cheers, Tom Longson (nym) - Tackle Human Dilemmas. http://stopthespin.com/ On Thu, Apr 23, 2009 at 7:38 AM, Gustavo Narea wrote: > > On Thursday Apr

Re: Repoze.what Implementing permission system based on reputation

2009-04-23 Thread Gustavo Narea
On Thursday April 23, 2009 16:32:35 Gustavo Narea wrote: > By the way, if you may want to create the following aliases: > """ > class good_reputation(minimum_reputation): > def __init__(self, **kwargs): > super(good_reputation, self).__init__(3, **kwargs) > > class excellent_reputation

Re: Repoze.what Implementing permission system based on reputation

2009-04-23 Thread Gustavo Narea
Hello, If, for example, the reputation score is stored in a column of the users' table as an integer, you could write the following repoze.what predicate checker: """ from repoze.what.predicates import Predicate class minimum_reputation(Predicate): message = "Your minimum score reputation

Repoze.what Implementing permission system based on reputation

2009-04-23 Thread karikris...@gmail.com
We are developing social networking application in Pylons. We use username-password system and permission which comes part of repoze.what/who. Now we need to give permission to certain resources based on user reputation score. What is the architecture required using repoze.what? Can some one thr