[Zope] readinf File contents
Richard Smol
jazzcat@dds.nl
Wed, 5 Jan 2000 19:30:44 +0100 (MET)
> > Hi there,
> >
> > This Zope keeps baffling me ... now how do I simply read the
> > contents of
> > a File-object?
>
> fileObject.data or str(fileObject)
>
> Referencing a file object by name from python will not return it's
> contents, it will return the object. The object does not, nor should
> it, act or look like a string, which is what re.split expects.
>
> -Michel
>
Darn, looks like I have been programming in Java too much, with its handy
toString() methods ;) I prefer Zope over that crappy JSP anytime anyway....
Greetz,
RS