[web2py] Re: generic.load question

2010-07-21 Thread mdipierro
The idea of load is to render the content of the pay without the layout. On Jul 21, 1:57 pm, Rob wrote: > Hi Massimo, > > Yea, setting ajax=True makes it work fine.  I haven't tested trunk > yet. > > Sorry for being dense, but what is the use case for the .load version? > > {{=LOAD(request.contro

[web2py] Re: generic.load question

2010-07-21 Thread Rob
Hi Massimo, Yea, setting ajax=True makes it work fine. I haven't tested trunk yet. Sorry for being dense, but what is the use case for the .load version? {{=LOAD(request.controller,'p_view_list')}} renders the full view. {{=LOAD(request.controller,'p_view_list.load')}} just returns the raw data

[web2py] Re: generic.load question

2010-07-21 Thread mdipierro
Anyway... even with the bug it should work if you set ajax=True which is the most typical use case. On Jul 21, 1:52 am, Rob wrote: > views/item/index.html: > {{extend 'layout.html'}} > This is the item/index.html template > {{=LOAD(request.controller,'p_view_list.load')}} > > views/p_view_list.ht

[web2py] Re: generic.load question

2010-07-21 Thread mdipierro
It is a bug. I think I fixed it in trunk. Please check it. Massimo On Jul 21, 1:52 am, Rob wrote: > views/item/index.html: > {{extend 'layout.html'}} > This is the item/index.html template > {{=LOAD(request.controller,'p_view_list.load')}} > > views/p_view_list.html: > {{extend 'layout.html'}} >

[web2py] Re: generic.load

2010-07-16 Thread Rob
Hi, My noobness is not seeing the difference between when calling controller functions using {{=LOAD(request.controller,'someaction.load')}} vs {{=LOAD(request.controller,'someaction')}} as discussed here: https://groups.google.com/group/web2py/browse_frm/thread/713d37dd854c54bb/ea6bed4

[web2py] Re: generic.load

2010-07-16 Thread selecta
maybe this will help a bit understanding the different components http://www.web2pyslices.com/main/slices/take_slice/74 On Jul 16, 10:19 am, Jonas Rundberg wrote: > Thank you, > > I've been trying to find more information about LOAD, > web2py_component, web2py_ajax_page and web2py_trap_form, but

[web2py] Re: generic.load

2010-07-16 Thread Jonas Rundberg
Thank you, I've been trying to find more information about LOAD, web2py_component, web2py_ajax_page and web2py_trap_form, but I still don't get the big picture. What are the web2py_components? When should I use LOAD?... I'm using ajax, but when should I use the above instead of a 'standard' ajax(