Re: [google-appengine] how to upload a csv file, parse it, and save in the data model

2010-11-01 Thread djidjadji
You forgot the enctype attribute of the form tag form name=uploadform enctype=multipart/form-data 2010/10/31 He Jibo hej...@gmail.com: Hi, Can someone teach me how to parse a file uploaded to GAE? I am writing a feature that users can upload a .csv file, and save data into the data model. I

[google-appengine] how to upload a csv file, parse it, and save in the data model

2010-10-31 Thread He Jibo
Hi, Can someone teach me how to parse a file uploaded to GAE? I am writing a feature that users can upload a .csv file, and save data into the data model. I have already implemented the uploading, see the link below: http://gae-hejibo.appspot.com/TestUpload But I do not know how to parse it, and

Re: [google-appengine] how to upload a csv file, parse it, and save in the data model

2010-10-31 Thread Jeff Schwartz
I am not a Python person but you said the file was 'comma' separated yet it looks like (again, I am not a Python person) you are using tab instead of comma to split your input. On Sun, Oct 31, 2010 at 2:29 PM, He Jibo hej...@gmail.com wrote: Hi, Can someone teach me how to parse a file uploaded

Re: [google-appengine] how to upload a csv file, parse it, and save in the data model

2010-10-31 Thread He Jibo
Thanks for your quick response. The '\t' is a problem, but I think it is not a reason why the code does not work. Even if I do the following code, without any code for csv, it does direct my to debug.html after file upload. It seems the page is not posted file I clicked 'upload' in the page at

Re: [google-appengine] how to upload a csv file, parse it, and save in the data model

2010-10-31 Thread Jeff Schwartz
Like I said, I am not a Python person though I find Python quite easy to read so perhaps a real Python person can help you with your request. Certainly, though, splitting your input on tab when it was comma separated would have presented an issue so I am glad I could offer you some help. Good