Skip to content

Instantly share code, notes, and snippets.

@daniel-garcia
Created September 17, 2012 17:29
Show Gist options
  • Save daniel-garcia/3738635 to your computer and use it in GitHub Desktop.
Save daniel-garcia/3738635 to your computer and use it in GitHub Desktop.
print zenoss transforms
print "The following event classes have transforms associated with them:"
for ec in [ ec for ec in dmd.Events.getSubOrganizers() if ec.transform ]:
print ec.getOrganizerName()
print ec.transform
print 'X'*80
print "The following event classes have mappings with transforms associated with them:"
for event in dmd.Events.getInstances():
if event.transform:
print event.getEventClass()
print event.transform
print 'X'*80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment