I have several ZenPacks that create components - the Bridge ZenPack is an obvious example. If I try to delete a component by selecting it and using the "-" button atthe top of the panel, it responds with "Failed to delete components". If I do the same thing for an interface or a filesystem (ie Core Zenoss components) then the delete OK.
Anyone know what the trick is to make this work?
And / or know how to debug it??
ff, install firebug.
def deleteComponents(self, uids):
comps = imap(self._getObject, uids)
for comp in comps:
./IpInterface.py: def manage_deleteComponent(self, REQUEST=None):
./OSComponent.py: def manage_deleteComponent(self, REQUEST=None):
so you Component must be define manage_deleteComponent or Inherit class OSComponent
try to do:
x = dmd.getObjByPath(uid)