[web2py] Re: Process uploaded file

2014-07-16 Thread David Jobes
I will try this, i already have a python script that parsers a file and converts to dsv to then add to db, this is the script i am trying to run, once a upload a file. On Saturday, July 12, 2014 3:40:10 AM UTC-4, Massimo Di Pierro wrote: > > for example, let's say you want to upload text files.

[web2py] Re: Process uploaded file

2014-07-12 Thread Massimo Di Pierro
for example, let's say you want to upload text files. db.define_table('one',Field('filename','upload'),Field('processed','boolean',default=False,writable=False)) db.define_table('two',Field('one','reference one'),Field('results','text')) def index(): return dict(form = SQLFORM.grid(db.one))

[web2py] Re: Process uploaded file and save it in Folder uploads

2013-07-17 Thread Gerd
Thank you Massimo, it worked best regards Gerd Am Mittwoch, 17. Juli 2013 11:36:31 UTC+2 schrieb Massimo Di Pierro: > > Try this instead: > > request.vars.uploaded_file.file = StringIO.StringIO(data) > > On Wednesday, 17 July 2013 03:54:32 UTC-5, Gerd wrote: >> >> Hi! >> >> I have to anonymize HL

[web2py] Re: Process uploaded file and save it in Folder uploads

2013-07-17 Thread Massimo Di Pierro
Try this instead: request.vars.uploaded_file.file = StringIO.StringIO(data) On Wednesday, 17 July 2013 03:54:32 UTC-5, Gerd wrote: > > Hi! > > I have to anonymize HL7 file (replace all personal data with x). How can i > process an uploaded file "on the fly". This is what i've tried (when it > r