[Zope] Reading lines from a Zope File object
J Cameron Cooper
zope-l at jcameroncooper.com
Thu Jun 23 19:35:01 EDT 2005
John Poltorak wrote:
> What function is used to read lines from a Zope File object using Python?
> Is there any example of this anywhere?
>
> Doing a search for 'python read zope object' is just too generic to find
> any python code to do this.
You can get the main contents of a File with the 'data' attribute. It
returns a string.
You can ask a string 'splitlines' among other methods:
http://python.org/doc/lib/string-methods.html
You may also be interested in 'split'.
--jcc
--
"Building Websites with Plone"
http://plonebook.packtpub.com/
Enfold Systems, LLC
http://www.enfoldsystems.com
More information about the Zope
mailing list