diff --git a/pyscript/browser.py b/pyscript/browser.py index e8c6543..b99e8bb 100644 --- a/pyscript/browser.py +++ b/pyscript/browser.py @@ -11,7 +11,7 @@ # FOR A PARTICULAR PURPOSE. # ############################################################################## -"""Python Page Browser Views +"""Python Script Browser Views $Id$ """ @@ -24,7 +24,7 @@ class PythonScriptEval(object): """Evaluate the Python Script.""" def index(self, **kw): - """Call a Python Page""" + """Call a Python Script""" self.request.response.setHeader('content-type', self.context.contentType) result = self.context(self.request, **kw) @@ -34,14 +34,14 @@ class PythonScriptEval(object): class PythonScriptEditView(EditView): - """Edit View Class for Python Page.""" + """Edit View Class for Python Script.""" syntaxError = None def update(self): """Update the content with the HTML form data.""" try: - status = super(PythonPageEditView, self).update() + status = super(PythonScriptEditView, self).update() except SyntaxError, err: self.syntaxError = err status = _('A syntax error occurred.') diff --git a/pyscript/configure.zcml b/pyscript/configure.zcml index c9acdf3..97bebf0 100644 --- a/pyscript/configure.zcml +++ b/pyscript/configure.zcml @@ -48,8 +48,8 @@ @@ -58,7 +58,7 @@ for=".interfaces.IPythonScript" schema=".interfaces.IPythonScript" name="edit.html" - label="Edit Python Page" + label="Edit Python Script" class=".browser.PythonScriptEditView" template="edit.pt" permission="zope.ManageContent"