Hi Dieter,
Where is the 'manage_upload' function documented?
The problem that I had with manage_addFile seems to because I passed it a
unicode object rather than a string. The error message was *'unicode'
object has no attribute 'seek'* which led me to think a file-like object
was needed.
Jakob Schou Jensen wrote at 2008-9-9 08:27 +0200:
Where is the 'manage_upload' function documented?
In the source (OFS.Image.File.manage_upload).
def manage_upload(self,file='',REQUEST=None):
Replaces the current contents of the File or Image object with file.
The
Hi Dieter
By file object I meant the OFS.Image.File kind. I had two problems
creating and modifying the file (at least). The first was that the
manage_addFile() function that you mention seemed to insist on a os-file
like object for the file parameter. I got some kind of seek error when
trying to
Jakob Schou Jensen wrote at 2008-9-2 09:25 +0200:
By file object I meant the OFS.Image.File kind. I had two problems
creating and modifying the file (at least). The first was that the
manage_addFile() function that you mention seemed to insist on a os-file
like object for the file parameter.
It
Jakob Schou Jensen wrote at 2008-8-29 20:11 +0200:
I would like to create a File object in the and store some text in it from a
Python script.
It depends what you mean by File object.
If you mean a Python file, sitting somewhere on your file system,
then Andreas' advice is helpful.
If you mean
I would like to create a File object in the and store some text in it from a
Python script. Everything I try seems to end up in a security restriction of
some kind. Is there some obvious way that I have overlooked?
Thanks,
Jakob Schou Jensen
___
Zope
--On 29. August 2008 20:11:53 +0200 Jakob Schou Jensen
[EMAIL PROTECTED] wrote:
I would like to create a File object in the and store some text in it
from a Python script. Everything I try seems to end up in a security
restriction of some kind. Is there some obvious way that I have
On Fri, Aug 29, 2008 at 8:14 PM, Andreas Jung [EMAIL PROTECTED] wrote:
--On 29. August 2008 20:11:53 +0200 Jakob Schou Jensen
[EMAIL PROTECTED] wrote:
I would like to create a File object in the and store some text in it
from a Python script. Everything I try seems to end up in a security