And, I might add, this is simply awesome. It would also be very cool
if it could give me the dimensions of the browser window. I know I can
get it via jQuery, but it would save a step.

On Feb 22, 10:15 pm, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:
> I think this was fixed in a later version.
>
> On Feb 21, 9:52 pm, weheh <richard_gor...@verizon.net> wrote:
>
>
>
>
>
>
>
> > I'm trying to detect the browser being used to access my web2py app.
> > The literature seems to recommend reading request.env.http_user_agent.
> > But the results are a little confusing, so I'm trying
> > request.user_agent(), which uses "gluon/contrib/
> > user_agent_parser.py" (as per the doc). This throws the following
> > ticket:
>
> > Traceback (most recent call last):
> >   File "N:\web2py\gluon\main.py", line 518, in wsgibase
> >     session._try_store_on_disk(request, response)
> >   File "N:\web2py\gluon\globals.py", line 528, in _try_store_on_disk
> >     cPickle.dump(dict(self), response.session_file)
> > PicklingError: Can't pickle <class 'storage.Storage'>: it's not the
> > same object as storage.Storage
>
> > I'm on web2py v1.99.2
>
> > Thanks.

Reply via email to