> request.environ["HTTP_USER_AGENT"] And just to elaborate on this, note that this is specific to HTTP, not Pylons. Also note that as an HTTP header passed by the user, users can (and many do) fake their user-agent, often to appear to be things like Google's crawler, versions of IE that they are not using (because of old brain-dead servers that deny anything that isn't IE), etc. Try googling around for "http user agent" to see some common issues associated with relying on this header.
Also since you're targetting smart phones, see if you can get some advice from other smartphone developers on how they deal with this. For instance, personally I *hate* being forced into a smartphone-only site when that site is not 100% as featured as the site I wanted to go to. -- 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.
