The following script gives a listing of all of your existing transforms on your system. The location and code of the transform are listed out for each transform found.
Transforms are code-snippets that can be used to change events and behavior, before the event is entered into the events database. See our administration guide for general information on transforms.
$ZENHOME/bin
directoryshowAllTransforms.py
in the $ZENHOME/bin
directoryfor
loopshowAllTransforms.py > transforms.txt
#!/usr/bin/env python import Globals from Products.ZenUtils.ZenScriptBase import ZenScriptBase dmd = ZenScriptBase(connect=True).dmd for ec in dmd.Events.getSubOrganizers(): if ec.transform: print "=== %s ===" % ec.getOrganizerName() print ec.transform print for i in ec.instances(): if i.transform: print "=== %s/%s ===" % (ec.getOrganizerName(), i.id) print i.transform print