All of these items are available on the request object: http://pythonpaste.org/webob/class-webob.Request.html
If you're using the latest alpha you have to do: from pylons import request If you're using trunk you can just do from tg import request Then you should be able to use the request object in your controllers. If you want to get at the raw CGI variables, request.environ is the WSGI environment dictionary, and the environ definition is defered to the CGI spec. --Mark Ramm On Wed, Aug 20, 2008 at 12:18 PM, Helio Pereira <[EMAIL PROTECTED]> wrote: > > Hi all, > > In tg2 how can access variables like: > > REMOTE_ADDR > HTTP_X_FORWARDED_FOR > > > -- Mark Ramm-Christensen email: mark at compoundthinking dot com blog: www.compoundthinking.com/blog --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
