[Zope] Reading File Object in Script (Python)

Andreas Jung lists at zopyx.com
Thu Sep 7 05:11:00 EDT 2006



--On 7. September 2006 01:20:53 -0700 Ferhat Ayaz <ferhatayaz at yahoo.com> 
wrote:

> Hi,
>
> I want to read a File object from ZODB. How can I read
> the content of the uploaded File object?

Use the read() method.

> I must to read it line by line with readlines().

Use read() and split() the data if necessary.


-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060907/3d556246/attachment.bin


More information about the Zope mailing list