1
2
3
4
5
6
7
8
9
10
11
12
13
14 import types
15 from ZenossSecurity import ZEN_VIEW
16
18 """
19 Default implementation of IDeviceManager interface. This interface
20 is implemented by classes that have a device relationship to allow them
21 to manage their device relations.
22 """
23
27
29 """see IManageDevice"""
30 raise NotImplementedError
31
32 - def removeDevices(self, deviceNames=None, deleteStatus=False,
33 deleteHistory=False, deletePerf=False,REQUEST=None):
34 """see IManageDevice"""
35 from Products.ZenUtils.Utils import unused
36 unused(deleteHistory, deletePerf, deleteStatus)
37 if not deviceNames: return self()
38 if type(deviceNames) in types.StringTypes: deviceNames = (deviceNames,)
39 for devname in deviceNames:
40 self.devices._delObject(devname)
41 if REQUEST:
42 return self()
43