Cherrypy can run on android ! without any patching needed , Can Rocket do that?

155 views
Skip to first unread message

Phyo Arkar

unread,
Jan 14, 2012, 7:50:04 AM1/14/12
to web2py
I cant wait to run Web2py on my android 8 inches and 10 inches tablets and develop inside there.
But i see this tutorial : Cherrypy on Android! 

Can we hack rocket to run on android and then we should be able to run web2py on there! 
http://www.defuze.org/archives/228-running-cherrypy-on-android-with-sl4a.html

Anyone up for that?

Thanks

Phyo.

Massimo Di Pierro

unread,
Jan 14, 2012, 12:07:58 PM1/14/12
to web2py-users
I did not try but I think yes because it does not use any additional
libraries.

On Jan 14, 6:50 am, Phyo Arkar <phyo.arkarl...@gmail.com> wrote:
> I cant wait to run Web2py on my android 8 inches and 10 inches tablets and
> develop inside there.
> But i see this tutorial : Cherrypy on Android!
>
> Can we hack rocket to run on android and then we should be able to run
> web2py on there!http://www.defuze.org/archives/228-running-cherrypy-on-android-with-s...

Nik Klever

unread,
Jan 15, 2012, 5:28:21 AM1/15/12
to web...@googlegroups.com

web2py runs on Android - I've tested it with my Motorola Defy. The only
problems, I discovered until now concerns the cache:

1. gluon/cache.py uses the python standard library shelve. And shelve on
Android uses dumbdbm instead of anydbm as normally on unix systems, this
leads to problems in creating new database files for caching - in web2py
therefor in creating applications. I solved this with a short workaround
of cache.py (see attachment) and a default cache-archive (see
attachment). This is still a workaround, because this problem should be
solved by shelve in the standard library and not by web2py !

The attachments can be found on my server:
http://klever.hs-augsburg.de/Veranstaltungen/page/informationen#web2pyAndroid


2. additionally cache problems on Android is caused by the disk cache
functionality - I haven't looked into this problem in detail, because
web2py works also without disk caching and the normal use-case for
web2py on Android is for single-users - it does not makes any sense to
use it as a server for more than one user !

Greetings,
Nik

--

______________________________________________
Prof. Dr. Nik Klever
- Studiendekan -
______________________________________________
Hochschule Augsburg - Fakultät für Informatik
http://www.hs-augsburg.de/informatik/
mailto:nik.k...@hs-augsburg.de
______________________________________________


Massimo Di Pierro

unread,
Jan 15, 2012, 3:54:15 PM1/15/12
to web2py-users
Nice. perhaps we could by-pass shelve and provide out own
implementation based on sqlite. Actually I have this coded already...
pros, cons?

On Jan 15, 4:28 am, Nik Klever <nik.kle...@hs-augsburg.de> wrote:
> web2py runs on Android - I've tested it with my Motorola Defy. The only
> problems, I discovered until now concerns the cache:
>
> 1. gluon/cache.py uses the python standard library shelve. And shelve on
> Android uses dumbdbm instead of anydbm as normally on unix systems, this
> leads to problems in creating new database files for caching - in web2py
> therefor in creating applications. I solved this with a short workaround
> of cache.py (see attachment) and a default cache-archive (see
> attachment). This is still a workaround, because this problem should be
> solved by shelve in the standard library and not by web2py !
>
> The attachments can be found on my server:http://klever.hs-augsburg.de/Veranstaltungen/page/informationen#web2p...
>
> 2. additionally cache problems on Android is caused by the disk cache
> functionality - I haven't looked into this problem in detail, because
> web2py works also without disk caching and the normal use-case for
> web2py on Android is for single-users - it does not makes any sense to
> use it as a server for more than one user !
>
> Greetings,
> Nik
>
>
>
>
>
>
>
>
>
> > I did not try but I think yes because it does not use any additional
> > libraries.
>
> > On Jan 14, 6:50 am, Phyo Arkar <phyo.arkarl...@gmail.com> wrote:
> > > I cant wait to run Web2py on my android 8 inches and 10 inches tablets and
> > > develop inside there.
> > > But i see this tutorial : Cherrypy on Android!
>
> > > Can we hack rocket to run on android and then we should be able to run
> > > web2py on there!http://www.defuze.org/archives/228-running-cherrypy-on-android-with-s...
>
> > > Anyone up for that?
>
> > > Thanks
>
> > > Phyo.
>
> --
>
> ______________________________________________
> Prof. Dr. Nik Klever
> - Studiendekan -
> ______________________________________________
> Hochschule Augsburg - Fakultät für Informatikhttp://www.hs-augsburg.de/informatik/
> mailto:nik.kle...@hs-augsburg.de
> ______________________________________________

Phyo Arkar

unread,
Jan 16, 2012, 6:33:59 AM1/16/12
to web...@googlegroups.com
There wont be much cons. I havn't tested tho.
I tested cherrypy and works well , going to test Web2py with Nik's patch on my android tab.
With web2py it will open alot of possiblities to android. Thats cool!.
Reply all
Reply to author
Forward
0 new messages