[web2py] creating a rest api for file uploading and processing

2012-02-07 Thread giovanni allegri
Hi I need to setup a prototype for a web application which will expose a REST api to manage zipped sqlite db files, representing a mobile application project storage. I'm considering web2py because it seems agile and very well suited, but I would like to know if its "batteries included" can ful

[web2py] dynamic model (with uploaded db)

2012-02-08 Thread giovanni allegri
Hi, I'm moving my first steps ith web2py. I'm considering it to setup a REST service where a user can upload (zipped) sqlite DBs and view/edit their content through a web interface. The db structure is fixed (it's the storage of a desktop application), so I can define a model for it, but I wonder i

[web2py] Re: dynamic model (with uploaded db)

2012-02-08 Thread giovanni allegri
PS: I've tried using the auto_import=True option in DAL, but if I try to access any table, eg. db(db['table'].select(), I get KeyErrors On 8 Feb, 09:28, giovanni allegri wrote: > Hi, > I'm moving my first steps ith web2py. > I'm considering it to setup a RE

[web2py] Re: dynamic model (with uploaded db)

2012-02-08 Thread giovanni allegri
Thanks very much. If I understand correctly auto_import will only work for DBs located in the databases/ folder and have associated a .table file, right? While, if my DB is anywhere I still can use it (without auto_import) but setting to False the migration option. I will give it a try... as soon

[web2py] problems running web2py with apache on windows (client denied by server configuration)

2012-02-08 Thread giovanni allegri
I have to run web2py on a Windows dev server (before moving the app to a Linux box!) I've tried to setup the minimal apache conf: WSGIScriptAlias / path_to_web2py\wsgihandler.py AllowOverride None Order Allow,Deny Deny from all Allow from all AliasMatch ^/([^/]

[web2py] Re: problems running web2py with apache on windows (client denied by server configuration)

2012-02-08 Thread giovanni allegri
8 16:04:26 2012] [error] ImportError: No module named os On 8 Feb, 15:52, giovanni allegri wrote: > I have to run web2py on a Windows dev server (before moving the app to > a Linux box!) > I've tried to setup the minimal apache conf: > > WSGIScriptAlias / path_to_web2py\wsgihandl

[web2py] how to deploy web2py not in the apache root (help with url rewriting)

2012-02-08 Thread giovanni allegri
I've seen a lot of examples to manage url rewriting and proxying with web2py, but I haven't found a solution to my problem. I don't have much experience with mod_rewrite, but I would like to use it and avoid rewriting inside web2py (through its routes facilites). My situation is a single domain, w

[web2py] Re: how to deploy web2py not in the apache root (help with url rewriting)

2012-02-08 Thread giovanni allegri
Am I wrong? giovanni On 8 Feb, 18:45, giovanni allegri wrote: > I've seen a lot of examples to manage url rewriting and proxying with > web2py, but I haven't found a solution to my problem. > I don't have much experience with mod_rewrite, but I would like to use > i

[web2py] Re: problems running web2py with apache on windows (client denied by server configuration)

2012-02-08 Thread giovanni allegri
SOLVED, setting the WSGIPythonHome directive to my python install, otherwise mod_wsgi looks in the wrong prefix (probably the one set when compiled?) giovanni On 8 Feb, 16:07, giovanni allegri wrote: > I've found the problem. I had added an erroneus wsgihandler.py to the > Directory

[web2py] Re: how to deploy web2py not in the apache root (help with url rewriting)

2012-02-10 Thread giovanni allegri
Thanks for your tips. I'm out of office in these days so I cannot test it now. I was just thinking to the solution suggested by tom. I will try it because I will have to serve various applications. I will need to remove the w2p prefix too to obtain (e.g.): http://server2/cpa4 and http://server/mast

[web2py] rest service authentication on non-secure channel (HTTP)

2012-02-14 Thread giovanni allegri
I've read various threads on this topic, and I'm aware that web2py doesn't provide Digest Auth. I need to expose an http service to mobile applications. The users should set a password on its own device and it will be used transparently to access the services. For various reasons I cannot use HTTPS