[Zope3-Users] security on file objects prevents accessing "read" in other methods

Joel Moxley jfmoxley at gmail.com
Tue Mar 28 11:13:33 EST 2006


Hello Zopistas,

One of my lingering issues deals with security on file objects that
prevents me from passing a file to another method and then accessing
"read".  Right now, I've got a function that fetches a file using
urllib2, but I pass back a string (return file.read()) instead of the
file to get around this issue.

What's the best way to pass around a file object with open permissions?

Thanks,
Joel


More information about the Zope3-users mailing list