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 <[email protected]> wrote:
> 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(minimum_reputation):
> >     def __init__(self, **kwargs):
> >         super(excellent_reputation, self).__init__(5, **kwargs)
> > """
>
> Better yet:
> """
> good_reputation = minimum_reputation(3)
> excellent_reputation = minimum_reputation(5)
> """
>
> ... so you can use them as in:
> """
> class CoolController(BaseController):
>     @ActionProtector(good_reputation):
>     def something_for_people_with_good_reputation(self):
>         # do something...
>
>     @ActionProtector(excellent_reputation):
>     def something_for_people_with_excellent_reputation(self):
>         # do something...
> """
> --
> Gustavo Narea <xri://=Gustavo>.
> | Tech blog: =Gustavo/(+blog)/tech  ~  About me: =Gustavo/about |
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to