Mobile devices + web2py

53 views
Skip to first unread message

tiago almeida

unread,
Jan 28, 2010, 7:01:48 AM1/28/10
to web...@googlegroups.com
Hello,
does web2py have any mechanism for dealing with mobile devices? I'm talking about determining if the user is on a mobile device so that pages can be tailored for those screens.

I've searched in the book and in web2pyslices and don't see anything like that.

Thanks a lot in advance,
Tiago Almeida

mdipierro

unread,
Jan 28, 2010, 10:15:36 AM1/28/10
to web2py-users
http://www.web2py.com/examples/static/mobile_device_detect.py

On Jan 28, 6:01 am, tiago almeida <tiago.b.alme...@gmail.com> wrote:
> Hello,
> does web2py have any mechanism for dealing with mobile devices? I'm talking

> about *determining if the user is on a mobile device* so that pages can be

tiago almeida

unread,
Jan 28, 2010, 10:27:10 AM1/28/10
to web...@googlegroups.com
Great! I missed that one.

Thank you very much,
Tiago
-----
--
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to web2py+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/web2py?hl=en.


Thadeus Burgess

unread,
Jan 28, 2010, 11:53:44 AM1/28/10
to web...@googlegroups.com
wow Massimo where did that one creep out of the depths from!

Lol I never knew :)

-Thadeus

Jason Brower

unread,
Jan 28, 2010, 1:57:51 PM1/28/10
to web...@googlegroups.com
And if you need something more advanced than that... pywurfl is very
good. Tells all the capabilities of the phone as well. Even things
like if it has a camera and the screensizes. Very powerful. Used it in
my thesis project in web2py. (woot woot)
BR,
Jason Brower

mdipierro

unread,
Jan 28, 2010, 2:25:08 PM1/28/10
to web2py-users
LOL. I do not know it is time stamped as 2009-07-11. I do not remember
why I wrote it. Somebody must have asked for it in the past.

On Jan 28, 10:53 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
> wow Massimo where did that one creep out of the depths from!
>
> Lol I never knew :)
>
> -Thadeus
>
> On Thu, Jan 28, 2010 at 9:27 AM, tiago almeida
>

> <tiago.b.alme...@gmail.com> wrote:
> > Great! I missed that one.
>
> > Thank you very much,
> > Tiago
> > -----

tiago almeida

unread,
Jan 28, 2010, 2:35:06 PM1/28/10
to web...@googlegroups.com
Looks great. Thanks :)

John Divon

unread,
Feb 2, 2010, 2:43:01 AM2/2/10
to web2py-users
Hi All,

We have found a little bug in this function. Should use the following
line :
if request.env.http_accept and request.env.http_accept.find('text/
vnd.wap.wml')>=0:
instead:
if request.env.http_accept and request.env.http_accept.find('text/
vnd.wap.wml'):

Cheers.


On Jan 28, 9:25 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> LOL. I do not know it is time stamped as 2009-07-11. I do not remember
> why I wrote it. Somebody must have asked for it in the past.
>
> On Jan 28, 10:53 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
>
>
>
>
>
> > wow Massimo where did that one creep out of the depths from!
>
> > Lol I never knew :)
>
> > -Thadeus
>
> > On Thu, Jan 28, 2010 at 9:27 AM, tiago almeida
>
> > <tiago.b.alme...@gmail.com> wrote:
> > > Great! I missed that one.
>
> > > Thank you very much,
> > > Tiago
> > > -----
> > > On Thu, Jan 28, 2010 at 3:15 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > >>http://www.web2py.com/examples/static/mobile_device_detect.py
>
> > >> On Jan 28, 6:01 am, tiago almeida <tiago.b.alme...@gmail.com> wrote:
> > >> > Hello,

> > >> > does web2py have any mechanism for dealing withmobiledevices? I'm
> > >> > talking
> > >> > about *determining if the user is on amobiledevice* so that pages can

Reply all
Reply to author
Forward
0 new messages