Trees | Indices | Help |
|
---|
|
1 ########################################################################### 2 # 3 # This program is part of Zenoss Core, an open source monitoring platform. 4 # Copyright (C) 2007, Zenoss Inc. 5 # 6 # This program is free software; you can redistribute it and/or modify it 7 # under the terms of the GNU General Public License version 2 as published by 8 # the Free Software Foundation. 9 # 10 # For complete information please visit: http://www.zenoss.com/oss/ 11 # 12 ########################################################################### 13 14 import types 15 from ZenossSecurity import ZEN_VIEW 1618 """ 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 314332 - 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()
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Thu May 7 11:46:27 2009 | http://epydoc.sourceforge.net |