/usr/share/zope/Products/ReplaceSupport/Handlers/PythonScript.py is in zope-replacesupport 1.0.3-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | from Products.ReplaceSupport.ReplaceHandler import ReplaceHandler
__handler_class_name__ = 'PythonScriptHandler'
class PythonScriptHandler( ReplaceHandler ):
'''search & replace in PythonScripts'''
def getMetaType( self ):
return 'Script (Python)'
def getChangePermission( self ):
return 'Change Python Scripts'
def getBody( self, ob ):
return ob.body()
def getParams( self, ob ):
return ob.params()
def manageEdit( self, ob, body, params='' ):
ob.ZPythonScript_edit( params, body )
|