[Zope] Saving PIL Images on zope

2008-05-28 Thread Gaurav Girotra
I am using Plone3 and zope 2.10,
I need to save PIL images generated through MatplotLib Graphs using External
Methods to my zope site

I have used  addImage(self,'%s' % img_id, title = '%s' % img_id,
file=image_data.getvalue() )
which adds image as a content type and also on the current context

Is there any other way to save images on my local zope site?
___
Zope maillist  -  Zope@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 )


Re: [Zope] saving PIL Images

2008-05-28 Thread Andreas Jung



--On 28. Mai 2008 15:01:56 +0530 Gaurav Girotra [EMAIL PROTECTED] wrote:



Can anyone Help me in saving images to the file system.



Pretty easy: fix your file permissions. If your zope process should
write to the filesystem then the directory must be writable.

-aj

pgpMbn5l12xbZ.pgp
Description: PGP signature
___
Zope maillist  -  Zope@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 )


Re: [Zope] saving PIL Images

2008-05-28 Thread Peter Bengtsson
2008/5/28 Gaurav Girotra [EMAIL PROTECTED]:
 Hello

 I am using Plone3 and zope 2.10,
 I need to save images generated through MatplotLib Graphs using External
 Methods to my zope site or to my linux file system.

 When i try to save using im.save(/zope/zeocluster/Extemsions)

Been a while but doesn't im.save() expect a filename?

 folder i get Permission denied error.

 Can anyone Help me in saving images to the file system.

 ___
 Zope maillist  -  Zope@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 )





-- 
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@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] saving PIL Images

2008-05-28 Thread Gaurav Girotra
Hello

I am using Plone3 and zope 2.10,
I need to save images generated through MatplotLib Graphs using External
Methods to my zope site or to my linux file system.

When i try to save using im.save(/zope/zeocluster/Extemsions)
folder i get Permission denied error.

Can anyone Help me in saving images to the file system.
___
Zope maillist  -  Zope@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 )