Hello, everybody. I've tried to implement the @require decorator into TG with this code: http://paste.turbogears.org/paste/13386
However, that HTTPUnauthorized exception is not handled neither by TurboGears nor repoze.who and I'm sure it's because I'm missing something -- but what? Anyway, this is how that decorator was defined in tgext.authorization: http://trac.turbogears.org/browser/projects/tgAuthorization/trunk/tgext/authorization/authorize.py?rev=5629#L350 What am I doing wrong? I've seen something called "hooks" in tg.decorators, but it's not very clear to me how they work and if I should use them for this. Thanks in advance. -- Gustavo Narea <http://gustavonarea.net/>. Get rid of unethical constraints! Get freedomware: http://www.getgnulinux.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
