[web2py] Re: IE11 vs gluon.contrib.user_agent - 'browser' key not existing anymore

2013-10-31 Thread Massimo Di Pierro
Should be fixed.

On Thursday, 31 October 2013 03:59:09 UTC-5, Baptiste.T wrote:
>
> Issue 1755 has just been created about this: 
> https://code.google.com/p/web2py/issues/detail?id=1755
>
> Thanks for the update.
>

-- 
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.


[web2py] Re: IE11 vs gluon.contrib.user_agent - 'browser' key not existing anymore

2013-10-31 Thread Baptiste.T
Issue 1755 has just been created about this: 
https://code.google.com/p/web2py/issues/detail?id=1755

Thanks for the update.

-- 
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.


[web2py] Re: IE11 vs gluon.contrib.user_agent - 'browser' key not existing anymore

2013-10-30 Thread Massimo Di Pierro
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:*
>   -'Windows'}>, 'is_tablet': False, 'is_mobile': False, 'browser': 
>{'version': '29.0.1547.62', 'name': 'Chrome'}>}>
>   - *IE11:*
>   -'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.