[google-appengine] Re: Can Appengine provide Browser information..?

2009-03-26 Thread Tom M.
Very helpful. Are there any suggested best practices for determining how to display a page? For example, in displaying a wine bottle I'd like to have a mobile friendly page and a full page for online visitors. Do I just switch off of the HTTP_USER_AGENT? Guidance much appreciated! On Mar 16,

[google-appengine] Re: Can Appengine provide Browser information..?

2009-03-16 Thread Joe Bowman
import os os.environ['REMOTE_ADDR'] is the IP os.environ['HTTP_USER_AGENT'] is the user agent I'm sure there's more, those are the two I needed when I created the sessions utility. Note: I've found that they don't always populate, more than likely a per browser issue. I was confused to see

[google-appengine] Re: Can Appengine provide Browser information..?

2009-03-15 Thread Steve Robillard
Try a Google search for browser detection or sniffing. Basically you need to check the request headers, but this is very difficult to get right 100% of the time for all browsers. -Original Message- From: google-appengine@googlegroups.com [mailto:google-appeng...@googlegroups.com] On

[google-appengine] Re: Can Appengine provide Browser information..?

2009-03-15 Thread xml2jsonp
Using JavaScript: if (/msie/.test(navigator.userAgent.toLowerCase()) !/opera/.test(navigator.userAgent.toLowerCase())) { [...] On Mar 15, 7:56 am, jago java.j...@gmail.com wrote: Hi, Can I write some Python code that creates an HTML which prints if the client is running Firefox or IE ?