[Zope] How to read a file object
Andreas Jung
lists at andreas-jung.com
Wed Jun 1 08:21:11 EDT 2005
--On 1. Juni 2005 15:02:16 +0300 Vital Lobachevsky <tick at web.vi> wrote:
>
> Suppose your file 'myFile' and your script 'myScript' in the same folder.
> You can get file data in your script using 'data' property:
>
> fileData = container.myFile.data
You should *not* do that. You are using an implementation detail that is
unlikely thought to be used for public use. You should use
str(container.myFile) instead.
-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/20050601/c82c56d8/attachment.bin
More information about the Zope
mailing list