[web2py] Re: Help in getting csv-download to work

2010-07-13 Thread mdipierro
Thanks for your questions. I am sure it helps clarify this to other users as well. Massimo On 13 Lug, 04:13, Johann Spies wrote: > On 13 July 2010 00:07, mdipierro wrote: > > > This your actions > > > def evaluation_data(): > ... > >    if form.accepts(request.vars, session): > >        redirec

Re: [web2py] Re: Help in getting csv-download to work

2010-07-13 Thread Johann Spies
On 13 July 2010 00:07, mdipierro wrote: > This your actions > > def evaluation_data(): ... >    if form.accepts(request.vars, session): >        redirect(URL(r=request, > f='search_filled_in_forms',vars=request.vars)) > > IT DOES NOT DEFINE rows Correct, it was defined in the redirected funct

[web2py] Re: Help in getting csv-download to work

2010-07-12 Thread mdipierro
This your actions def evaluation_data(): title = 'Evaluation data' form = SQLFORM.factory( Field('sp', label='Service Provider', requires = IS_IN_DB(db,db.service_provider.id, '% (name)s')), Field('form_id', requires = IS_IN_DB(db,db.evaluation_form.form_id))

Re: [web2py] Re: Help in getting csv-download to work

2010-07-12 Thread Johann Spies
On 12 July 2010 21:36, mdipierro wrote: >  ...evaluation_data.csv... calls evaluation_data action does not > define "rows" but the view evaluation_data.csv contains: > > rows.export_to_csv_file(stream) So why does it complain the name 'row' does was not defined? I am sorry but I do not understa

[web2py] Re: Help in getting csv-download to work

2010-07-12 Thread mdipierro
...evaluation_data.csv... calls evaluation_data action does not define "rows" but the view evaluation_data.csv contains: rows.export_to_csv_file(stream) On 12 Lug, 13:14, Johann Spies wrote: > On 11 July 2010 00:32, mdipierro wrote: > > > I think > > > Download as csv- > > file > > I still g

Re: [web2py] Re: Help in getting csv-download to work

2010-07-12 Thread Johann Spies
On 11 July 2010 00:32, mdipierro wrote: > I think > > Download as csv- > file I still get "NameError: name 'rows' is not defined" I have also tried adding ",args=request.vars" to the above url, but it made no difference. So how do I tell the csv-view about 'rows'? Regards Johann -- "Finall

[web2py] Re: Help in getting csv-download to work

2010-07-10 Thread mdipierro
I think Download as csv- file On 10 Lug, 15:54, Johann Spies wrote: > I would appreciate help to get csv-download to work please. > > The following in my controller: > > def search_filled_in_forms(): >     sp = request.vars.sp >     form_id = request.vars.form_id.lower() >     title = request.va