Ah, see this would be the perfect place for that variable dump I was talking
about :)

That is still on my todo list... haha.

-Thadeus




On Thu, Oct 22, 2009 at 9:16 PM, Thadeus Burgess <thade...@thadeusb.com>wrote:

> >>> db.export_to_csv_file(open('/home/thadeusb/Desktop/data.csv', 'wb'))
>
>
> #then later
>
> >>> db.import_from_csv_file(open('/home/thadeusb/Desktop/data.csv', 'r'))
>
> Traceback (most recent call last):
>
>
>   File "/home/thadeusb/Applications/web2py-devel/gluon/restricted.py", line 
> 184, in restricted
>
>
>     exec ccode in environment
>   File 
> "/home/thadeusb/Applications/web2py-devel/applications/bootygrab/controllers/default.py"
>  <http://127.0.0.1:8000/admin/default/edit/bootygrab/controllers/default.py>, 
> line 617, in <module>
>
>
>   File "/home/thadeusb/Applications/web2py-devel/gluon/globals.py", line 102, 
> in <lambda>
>
>
>     self._caller = lambda f: f()
>
>
>   File 
> "/home/thadeusb/Applications/web2py-devel/applications/bootygrab/controllers/default.py"
>  <http://127.0.0.1:8000/admin/default/edit/bootygrab/controllers/default.py>, 
> line 566, in dbio
>
>
>     db.import_from_csv_file(open('/home/thadeusb/Desktop/bootygrab.csv', 'r'))
>
>
>   File "/home/thadeusb/Applications/web2py-devel/gluon/sql.py", line 1193, in 
> import_from_csv_file
>
>
>     self[tablename].import_from_csv_file(ifile, id_map, null, unique)
>
>
>   File "/home/thadeusb/Applications/web2py-devel/gluon/sql.py", line 1705, in 
> import_from_csv_file
>
>
>     for line in reader:
> Error: field larger than field limit (131072)
>
>
>
> -Thadeus
>
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to