Hello, On Wednesday September 10, 2008 18:47:01 Mark Ramm wrote: > So what exactly goes in lib.auth?
Code to setup authentication and authorization in the application. Specifically, the SQLAuthenticatorPlugin class and the make_who_middleware() function found here: http://code.google.com/p/tgtools/source/browse/projects/tg.ext.repoze.who/trunk/tg/ext/repoze/who/middleware.py?r=60 make_who_middleware() should be in the TG2-powered project, because this extension won't deal with authentication anymore. This function is the one that setups repoze.who. And we should include SQLAuthenticatorPlugin in the project, if and only if we want to keep the current identity structure (user, groups and permissions in a database) by default in quickstarted projects. > My concern here is that there is already too much code generation > going on in the quickstart template, so I'm concerned about the size > of any additions there. Yes, I understand. But if we're going to make this extension only deal with authorization, we'll have to move its authentication bits into the template. Although option B would be to move tg.ext.repoze.who.middleware to tgext.authorization.quickstart (for example). I think this is the best solution if we don't want to make the template more complex: The template wouldn't be modified (except that tg.ext.repoze.who.middleware.make_who_middleware() will be replaced by tgext.authorization.quickstart.make_who_middleware()). Cheers. -- Gustavo Narea. http://gustavonarea.net/ Get rid of unethical constraints! Switch to Freedomware: http://softwareliberty.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
