Hi, I create folder in zope where I add one text file .Now i want to read the content of the file using the script python not using external script how can i do that . thanks in advance vaibhi
On 15.10.2008 9:31 Uhr, vaibhav pol wrote:
Hi,
I create folder in zope where I add one text file .Now i want to read the content of the file using the script python not using external script how can i do that .
If you refer to content sitting on the filesystem: you can't due to the restrictions of RestrictedPython - use an external method, browser view or any other form of "trusted code". -aj
vaibhav pol wrote at 2008-10-15 13:01 +0530:
I create folder in zope where I add one text file .Now i want to read the content of the file using the script python not using external script how can i do that .
For an "OFS.Image.File" object, the "str" function returns its content: "str(file)". -- Dieter
participants (3)
-
Andreas Jung -
Dieter Maurer -
vaibhav pol