[Zope] Accessing Files within Zope?

Casey Duncan casey@zope.com
Fri, 5 Jul 2002 12:34:17 -0400


On Friday 05 July 2002 11:48 am, Laurie Nason wrote:
> I just did this with a file:
>     my_file =3D split(file.data,'\r\n')
> the .data returns the contents of the file
>=20
> hth
>=20
> Laurie

BTW file.data is only the first chunk of the file's data (currently 64Kb =
in=20
size). So the above will truncate a file to 64K. To get the entire conten=
ts=20
of a file object, use:

data =3D str(file)

-Casey