I offer $50 is you can do this in a couple of days:

In the web2py admin interface there is a "pack custom page" which redirects 
to
http://127.0.0.1:8000/admin/default/pack_custom/<yourapp>
and has a button "download w2p".

I would like one addition button there that says "download as exe" which 
will do the following:
- download the latest web2py_win.zip
- unzip it (using the python API)
- copy the web2pp app in question (selected files/folders) under the 
unzipped web2py/applications/
- create a file routes.py under the unzipped web2py/ folder which contains
routers = dict( BASE=dict(default_application='....') )  
  where ... is the name of the app in question
- zips the unzip folder again with name web2py.app.<name>.exe and downloads 
it

The zip/unzip should be done in RAM using the python zip module. 
This is for those uses who develop on windows for window and expect the end 
users to run web2py locally with a single app. And yes, they exist. It 
would make their life easier and avoid zipping/unzipping mistakes and 
information leakage.

This should not take more than 10-20 lines in the admin app. It is also a 
good exercise.
I will only pay the first to deliver (if it works well) so post your 
solution in the form of a pull request on github.

Massimo

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