The point I'm trying to make is that this kind of things can perfectly be
done with repoze.who, without bringing any hack to the authorization
controls like that @xrequire decorator or the other things you suggested.

Want to get the credentials from the  body instead of the POST arguments?
Fine, simply change the following lines:
      request = Request(environ)
      if "login" in request.POST and "password" in request.POST:
          credentials = {
              'login': request.POST['login'],
              'password': request.POST['password'],
              }

to:
      parsed_xmlrpc = parse_it(environ['wsgi.input'])
      if "login" in parsed_xmlrpc and "password" in parsed_xmlrcp:
          credentials = {
              'login': parsed_xmlrpc['login'],
              'password': parsed_xmlrpc['password'],
              }

That simple.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en.

Reply via email to