[CMF-checkins] CVS: CMF - FSPythonScript.py:1.2
shane@digicool.com
shane@digicool.com
Wed, 21 Mar 2001 13:31:38 -0500 (EST)
Update of /cvs-repository/CMF/CMFCore
In directory korak:/tmp/cvs-serv24536
Modified Files:
FSPythonScript.py
Log Message:
Minor cleanup
--- Updated File FSPythonScript.py in package CMF --
--- FSPythonScript.py 2001/03/21 18:21:34 1.1
+++ FSPythonScript.py 2001/03/21 18:31:38 1.2
@@ -98,11 +98,8 @@
from CMFCorePermissions import ViewManagementScreens
import CMFCorePermissions
-import sys, re
-from Products.PythonScripts import Guarded
-from Products.PythonScripts.PythonScript import PythonScript, Python_magic
+from Products.PythonScripts.PythonScript import PythonScript
from Shared.DC.Scripts.Script import Script, defaultBindings
-from zLOG import LOG, ERROR, INFO
class FSPythonScript (Script, Acquisition.Implicit, Item_w__name__):
@@ -220,6 +217,8 @@
'ZScriptHTML_tryForm', 'PrincipiaSearchSource',
'document_src', 'params', 'body')
+ # We can't use PythonScript as a base class since there are
+ # many ways to modify it. Instead, we copy methods. :-/
ZScriptHTML_tryParams = PythonScript.ZScriptHTML_tryParams
_checkCBlock = PythonScript._checkCBlock
_newfun = PythonScript._newfun