I am trying to get web2py working on an iPad running Pythonista. It works 
fine although there is no Tk library so everything must be done in the 
console or the web interface. The problem with using the web interface is 
that if you leave Pythonista and thereby make it a background process in 
order to open a browser, the IOS background timer will stop Pythonista 
after a few minutes. If I use webbrowser.open within Pythonista then I will 
get a browser tab that uses webkit and runs as part of the Pythonista task 
which means it will not be stopped by IOS. The problem is that this browser 
is sending a useragent string that web2py interprets as a mobile interface 
whcih seems to result in problems in the admin page (i.e., no right hand 
frame). The same problem occurs if I go to the web2py server using Safari, 
unless I modify the useragent string; or I use Atomic Web and tell it to 
look like a desktop browser.  My question is, how can I get web2py to 
respond to the useragent string that webkit is sending as if it was the 
string appropriate to a desktop?

-- 
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/d/optout.

Reply via email to