This should be easy, please open a ticket. Thanks.

On Wednesday, 30 October 2013 05:13:49 UTC-5, Baptiste.T wrote:
>
> Hello,
>
> As an information, I was performing some tries with IE11 and web2py 
> applications, and a "funny" fact was appearing while using *
> gluon.contrib.user_agent_parser *to detect the browser.
>
> I'm used to use Chrome so here are the results of a *request.user_agent()* 
> depending 
> on the browser used:
>
>    - *Chrome:*
>       - <Storage {'os': <Storage {'version': 'NT 6.1', 'name': 
>       'Windows'}>, 'is_tablet': False, 'is_mobile': False, 'browser': 
> <Storage 
>       {'version': '29.0.1547.62', 'name': 'Chrome'}>}>
>       - *IE11:*
>       - <Storage {'os': <Storage {'version': 'NT 6.1', 'name': 
>       'Windows'}>, 'is_tablet': False, 'is_mobile': False}> 
>       
> So, as you can see, 'browser' is not existing anymore with IE11 (they have 
> removed this value from User Agent to be considered as any other browser).
>
> I don't know if it's possible to do an update of this very useful module 
> to take care of this case ?
> Else, I would like to warn you to be careful with that point, because if 
> you were using it to detect the browser (as I did), you could get an error 
> each time you're trying to get the information (for example with: *
> detect(request.env.http_user_agent)['browser']* which will return a 
> KeyError Exception).
>
> Hope it will help, 
>
> Baptiste
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to