[Zope-dev] Write in a file.

2002-07-01 Thread Juliette Colmant

Hello,
I have a Python script that has to write a string in
a file. When I launch it from Zope, I have an error
message from Zope telling me I can't write in my file.
Is there a way to write in a file from Zope or not? 
Is that a problem a rights? Do I change something
about the security in Zope?
Thanks
Juliette

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Write in a file.

2002-07-01 Thread Jerome Alet

Hi,

On Mon, Jul 01, 2002 at 10:13:25PM +0200, Juliette Colmant wrote:
 I have a Python script that has to write a string in
 a file. When I launch it from Zope, I have an error
 message from Zope telling me I can't write in my file.
 Is there a way to write in a file from Zope or not? 
 Is that a problem a rights? Do I change something
 about the security in Zope?

You should use an external method to do that, because
Python Scripts are very restricted.

Just put your script in zope/Extensions and 
add an external method which points to this script
in the ZMI.

you should use the [EMAIL PROTECTED] mailing
list instead of this one to ask such questions.

zope-dev is dedicated to the development of Zope.

bye,

Jerome Alet


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )