[Zope] replacing image without manage_upload
Henny van der Linde (zettai)
linde at inline-info.nl
Tue Mar 30 12:28:49 EST 2004
Thanks,
That was the trick.
----- Original Message -----
From: "Dragos Chirila" <d.chirila at finsiel.ro>
To: <zope at zope.org>
Sent: Tuesday, March 30, 2004 6:43 PM
Subject: Re: [Zope] replacing image without manage_upload
> Hi
>
> The Image class has a method update_data(self, data, content_type=None,
> size=None)
>
> so if you have 2 Image objects you can use:
>
> image1.update_data(image2.data)
>
> I think you can use this one.
>
> Dragos
>
>
> > Hi,
> >
> > I have a class with an dictionary containing on or more classes.
> >
> > The main class contains an image and the classes in the dictionary can
> > contain images.
> >
> > I want to replace the content of the image in the main class with one
of
> > the classes in the dictionary.
> >
> > This won't work:
> >
> > self.afbeelding=self.edits[edit_id].afbeelding_edit.
> >
> > Somewhere the imagetype get lost.
> >
> > Any idea?
> >
> > Henny
> >
> >
> >
> > _______________________________________________
> > Zope maillist - Zope at zope.org
> > http://mail.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://mail.zope.org/mailman/listinfo/zope-announce
> > http://mail.zope.org/mailman/listinfo/zope-dev )
> >
>
>
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
More information about the Zope
mailing list