[Zope-Checkins] CVS: Zope2 - PythonScript.py:1.16.2.8

Evan Simpson evan@digicool.com
Tue, 3 Apr 2001 15:01:54 -0400 (EDT)


Update of /cvs-repository/Zope2/lib/python/Products/PythonScripts
In directory korak:/tmp/cvs-serv16735

Modified Files:
      Tag: zope-2_3-branch
	PythonScript.py 
Log Message:
Give read() and write() docstrings, so that they are xmlrpc-callable.


--- Updated File PythonScript.py in package Zope2 --
--- PythonScript.py	2001/02/09 19:00:12	1.16.2.7
+++ PythonScript.py	2001/04/03 19:01:52	1.16.2.8
@@ -389,6 +389,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()
@@ -460,6 +461,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) + '##'