Python Scripts contain python code that gets executed when you call the script by:
Python Scripts can contain a "safe" subset of the python language. Python Scripts must be safe because they can be potentially edited by many different users through an insecure medium like the web. The following safety issues drive the need for secure Python Scripts:
open
are, therefore,
not allowed.Add a Python script to a folder.
Change the script by parsing the text argument into parts.
Leading lines that begin with ##
are stripped off, and if
they are of the form ##name=value
, they are used to set
meta-data such as the title and parameters. The remainder of
the text is set as the body of the Python Script.
Change the script's main parameters. This method accepts the following arguments:
Return the body of the Python Script, with a special comment
block prepended. This block contains meta-data in the form of
comment lines as expected by the write
method.
Return a list of the required parameters with which to test the script.
Change the script's title. This method accepts one argument,
title
which is the new value for the script's title and must be a
string.
Pass the text in file to the write
method.
Change the parameters and body of the script. This method accepts two arguments:
Return the text of the read
method, with content type
text/plain
set on the RESPONSE.
Add a Python script to a folder.