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.
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))
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
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
4 matches
Mail list logo