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 <[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 -~----------~----~----~----~------~----~------~--~---
