/usr/share/zope/Products/ReplaceSupport/Handlers/DTMLDocument.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 | from Products.ReplaceSupport.ReplaceHandler import ReplaceHandler
__handler_class_name__ = 'DTMLDocumentHandler'
class DTMLDocumentHandler( ReplaceHandler ):
'''search & replace in DTML Documents'''
def getMetaType( self ):
return 'DTML Document'
def getChangePermission( self ):
return 'Change DTML Documents'
def getBody( self, ob ):
return ob.raw
def manageEdit( self, ob, body, params='' ):
ob.manage_edit( body, ob.title )
|