DB.PY
db.define_table('test',
Field('name', 'string', length=50, notnull=True),
Field('email', 'string', notnull=True),
format="%(name)s")
DEFAULT.PY
query=(db.test.id>0)
fields=[db.test.id,db.test.name,db.test.email]
forms=SQLFORM.grid(query=query, csv=True)
return dict(forms=forms)
I get the following error:
<type 'exceptions.AttributeError'>Version
web2py™ Version 2.14.5-stable+timestamp.2016.04.13.22.22.13
Python Python 2.7.9: C:\python27\python.exe (prefix: C:\python27)
Function argument list
(self=<Row {'email': '[email protected]', 'name': 'Ryan Hood', 'id': 1L}>,
k='_extra')
It appears to be looking for an _extra parameter?
Note: This happens for both CSV and TSV exports.
Please advise.
Thank you,
Ryan
On Sunday, July 31, 2016 at 2:33:19 AM UTC-4, Massimo Di Pierro wrote:
>
> You press the button. Is this not working? What happens? What you model?
> What is your grid?
>
> On Friday, 29 July 2016 11:23:28 UTC-5, Ryan Hood wrote:
>>
>> How do you get the csv export to work in web2py grid?
>>
>> NOTE: Working with web2py version 2.14.6 and 2.14.5
>>
>> Thank you,
>>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.