Re: [Zope] How to read a file object

2005-06-01 Thread Andreas Jung
--On 1. Juni 2005 10:01:22 +0100 John Poltorak [EMAIL PROTECTED] wrote: How do I go about reading a Zope file object in Python? Define what reading a Zope File object means? You mean you want the body of an upload file? -aj pgpmNUJZSSkaB.pgp Description: PGP signature

Re: [Zope] How to read a file object

2005-06-01 Thread John Poltorak
On Wed, Jun 01, 2005 at 12:46:44PM +0200, Andreas Jung wrote: --On 1. Juni 2005 10:01:22 +0100 John Poltorak [EMAIL PROTECTED] wrote: How do I go about reading a Zope file object in Python? Define what reading a Zope File object means? You mean you want the body of an upload file?

Re: [Zope] How to read a file object

2005-06-01 Thread Andreas Jung
--On 1. Juni 2005 12:03:39 +0100 John Poltorak [EMAIL PROTECTED] wrote: On Wed, Jun 01, 2005 at 12:46:44PM +0200, Andreas Jung wrote: --On 1. Juni 2005 10:01:22 +0100 John Poltorak [EMAIL PROTECTED] wrote: How do I go about reading a Zope file object in Python? Define what reading a

Re: [Zope] How to read a file object

2005-06-01 Thread Vital Lobachevsky
John Poltorak wrote: On Wed, Jun 01, 2005 at 12:46:44PM +0200, Andreas Jung wrote: --On 1. Juni 2005 10:01:22 +0100 John Poltorak [EMAIL PROTECTED] wrote: How do I go about reading a Zope file object in Python? Define what reading a Zope File object means? You mean you want the body of

Re: [Zope] How to read a file object

2005-06-01 Thread Andreas Jung
--On 1. Juni 2005 15:02:16 +0300 Vital Lobachevsky [EMAIL PROTECTED] wrote: Suppose your file 'myFile' and your script 'myScript' in the same folder. You can get file data in your script using 'data' property: fileData = container.myFile.data You should *not* do that. You are using an

Re: [Zope] How to read a file object

2005-06-01 Thread Tino Wildenhain
Am Mittwoch, den 01.06.2005, 15:02 +0300 schrieb Vital Lobachevsky: John Poltorak wrote: On Wed, Jun 01, 2005 at 12:46:44PM +0200, Andreas Jung wrote: --On 1. Juni 2005 10:01:22 +0100 John Poltorak [EMAIL PROTECTED] wrote: How do I go about reading a Zope file object in Python?

Re: [Zope] How to read a file object

2005-06-01 Thread Paul Winkler
On Wed, Jun 01, 2005 at 10:01:22AM +0100, John Poltorak wrote: I'd appreciate it if anyone could point me to a repository of small code snippets which illustrate some simple techniques usable in Python scripts running under Zope. http://zopelabs.com/ Note there is a Python(Script) category

Re: [Zope] How to read a file object

2005-06-01 Thread Lennart Regebro
On 6/1/05, John Poltorak [EMAIL PROTECTED] wrote: I'm trying to learn some Python basics and hoping to use Zope as front end for writing and running a few snippets of code In that case you should use Zope3. Zope2 is highly-unpythonic, and using it pretty much requires you to learn Zope first,