I guess you meant to say it always returned a stream instead of the file 
name in your reply above (and not the other way around)?

I just saw your recent commit and it works fine again, the retrieve method 
now returns a stream as excepted. thanks!

Am Sonntag, 10. März 2013 23:40:39 UTC+1 schrieb Massimo Di Pierro:
>
> Can you check is the current trunk works for you? We are trying to improve 
> the APIs of retrieve.
>
> On Sunday, 10 March 2013 13:58:23 UTC-5, Alex wrote:
>>
>> I'm currently using web2py 2.1.1 and wanted to try 2.4.2 but I got a 
>> problem with retrieving uploaded files from the file system. I'm using the 
>> retrieve method of the upload field.
>> The problem is in dal.py line 9265 where it returns the file path instead 
>> of the stream.
>> stream = pjoin(file_properties['path'], name)
>> previously this was 
>> stream = open(pjoin(file_properties['path'], name), 'rb')
>>
>> now my code does not work anymore. I assume the missing open call is a 
>> bug, right?
>>
>> Alex
>>
>>

-- 

--- 
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/groups/opt_out.


Reply via email to