[web2py] web2py CRUD example

2012-01-27 Thread Gian Luca Decurtins
Hi all I'm trying to use the CRUD-feature of web2py (1.99.4). At the moment I'm stuck at invalid view (default/data.html) while accessing https://localhost/init/default/data/tables. So far I've created a simple application init and changed the following: In controllers/default.py I've disabled

Re: [web2py] web2py CRUD example

2012-01-27 Thread Bruno Rocha
include response.generic_patterns = ['*'] in your models or in your data controller, so you will be able to use generic views. On Fri, Jan 27, 2012 at 9:01 AM, Gian Luca Decurtins decur...@gmail.comwrote: Hi all I'm trying to use the CRUD-feature of web2py (1.99.4). At the moment I'm stuck

Re: [web2py] web2py CRUD example

2012-01-27 Thread Gian Luca Decurtins
Thank you! I had to edit models/db.py: # response.generic_patterns = ['*'] if request.is_local else [] response.generic_patterns = ['*'] Regards -Gian. BTW: In the original post I've replaced the FQDN with localhost. If the application did run on localhost this modification should not be

Re: [web2py] web2py CRUD example

2012-01-27 Thread Anthony
On Friday, January 27, 2012 10:43:53 AM UTC-5, Gian Luca Decurtins wrote: Thank you! I had to edit models/db.py: # response.generic_patterns = ['*'] if request.is_local else [] response.generic_patterns = ['*'] Note, there's a reason that generic views are enabled only on localhost by