As of version 2.3 of Zope, PythonMethods have been replaced by Scripts. They will continue to work, but you should use Scripts instead.
This is an attempt to allow Zope Methods to be written in plain Python code. Unlike External Methods, these PythonMethods will be created and managed entirely through the Zope interface. Like DTML Methods, they will be "safe".
PythonMethods will not allow assignment to an attribute, element, or slice. No "del" is allowed. Names starting with "_" are not accessible. Import is controlled. Globals all live in a private namespace.
Click here for some examples of Python Methods.