Jun 8, 2009 8:13 AM
Adding new tabs to Device View
-
Like (0)
servers = dmd.getDmdObj('Devices/Server/MyServer/devices/').objectItems()
for server in servers:
fti = server[1].factory_type_information
newAct = {'action': 'myperf', 'id': 'myPerf', 'name': 'MyPerf', 'permissions': ('View',)},
actTupl = fti[0]['actions']
newTupl = actTupl[:6] + newAct + actTupl[6:]
fti[0]['actions'] = newTupl
server[1].factory_type_information = fti
commit()
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||