[ZPT] Reading a file

Chris Withers chris at simplistix.co.uk
Thu Aug 5 13:15:25 EDT 2004


Evan Simpson wrote:

> When you convert the File object with str(), you have the contents of 
> the File as a string -- what you would get from the filesystem with 
> open('foo').read().  You're done.

I think he actually has a file on disk ;-)

...in which case add it through the ZMI and then did what Evan said, and 
ask on zope at zope.org instead!

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the ZPT mailing list