[Zope] manage_addImage from python

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Mon, 22 Oct 2001 14:23:42 +0400


On Mon, Oct 22, 2001 at 12:11:34PM +0200, Michel Vayssade wrote:
> Inside python code I tried using :
> self.manage_addImage('newid','localfs/image.gif',content_type='image/gif')
> 
> the "newid" object is created
> but its content is the STRING "localfs/image.gif"
> where I expected the CONTENT of the file localfs/image.gif
> 
> what do I miss ?

   You missed exactly this - content :) Put the content of the  object
instead of its name as the second parameter.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.