Re: [web2py] Re: generic.html not display crud.search correctly out of the box

2011-08-09 Thread Richard Vézina
I just had a look to the book... There is no extended explanations about the crud.search peculiar nature, since there is only a single example that actually use the correct controller syntax you point me out : def manage(): table=db[request .ar

Re: [web2py] Re: generic.html not display crud.search correctly out of the box

2011-08-09 Thread Richard Vézina
It true... It needs a result container... My bad... Sorry. Richard On Tue, Aug 9, 2011 at 2:42 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > haha. that's the problem. > > crud.search does not return one object but two > > form, rows = crud.search(db.dict_database) > return dic

Re: [web2py] Re: generic.html not display crud.search correctly out of the box

2011-08-09 Thread Richard Vézina
def search(): form = crud.search(db.dict_database) return dict(form=form) On Tue, Aug 9, 2011 at 2:36 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > what does your controller look like? > > On Aug 9, 1:31 pm, Richard Vézina wrote: > > Here what I got in the HTML nav. displa

Re: [web2py] Re: generic.html not display crud.search correctly out of the box

2011-08-09 Thread Richard Vézina
Here the old generic.html : {{extend 'layout.html'}} {{""" You should not modify this file. It is used as default when a view is not provided for your controllers """}} {{=BEAUTIFY(response._vars)}} admin request request{{=BEAUTIFY(request)}} session session{{=BEAUTIFY(session)}} response resp

Re: [web2py] Re: generic.html not display crud.search correctly out of the box

2011-08-09 Thread Richard Vézina
Here what I got in the HTML nav. displayed when I copy/paste/rename generic.html for search.html for a given controller function... Search(, ) designrequestsessionresponsedb stats With the old generic.html I had the HTML rendered correctly with all the input and check boxes and the dropbox for