[Zope-Checkins] CVS: Zope2 - PythonScript.py:1.25
Evan Simpson
evan@digicool.com
Tue, 3 Apr 2001 15:04:23 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/Products/PythonScripts
In directory korak:/tmp/cvs-serv17021
Modified Files:
PythonScript.py
Log Message:
Give read() and write() docstrings so they are xmlrpc-callable.
--- Updated File PythonScript.py in package Zope2 --
--- PythonScript.py 2001/02/26 19:47:25 1.24
+++ PythonScript.py 2001/04/03 19:04:22 1.25
@@ -397,6 +397,7 @@
manage_FTPput = PUT
def write(self, text):
+ """ Change the Script by parsing a read()-style source text. """
self._validateProxy()
mdata = self._metadata_map()
bindmap = self.getBindingAssignments().getAssignedNames()
@@ -468,6 +469,11 @@
return m
def read(self):
+ """ Generate a text representation of the Script source.
+
+ Includes specially formatted comment lines for parameters,
+ bindings, and the title.
+ """
# Construct metadata header lines, indented the same as the body.
m = _first_indent.search(self._body)
if m: prefix = m.group(0) + '##'