[Zope] LocalFS

J M Cerqueira Esteves jmce@artenumerica.com
Sat, 24 Feb 2001 17:51:21 +0000


On Sat, Feb 24, 2001 at 03:55:17PM +0000, J M Cerqueira Esteves wrote:
> ... however, it still states that in  manage_upload(file)  the 
> `file' parameter can be a string.  It can't be a string, only a 
> FileUpload instance (see HTTPRequest.py), but it would be nice 
> if it could be.  

I ended up using the same method as for regular folders 
(with "foo.bar" a LocalFS):

  foo.bar.manage_addProduct['OFSP'].manage_addFile (file_name,
                                                    file = content)

where `content' is a string with the intended file content.

-- 
 jmce: +351 919838775 ~ http://artenumerica.com/ ~ http://artenumerica.org/