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 from Globals import InitializeClass 15 from ZenModelRM import ZenModelRM 16 from Products.ZenRelations.RelSchema import * 17 1820 """ A mixin allowing an object to be the 21 endpoint of a Link object. 22 """ 23 24 meta_type = "Linkable" 25 26 _relations = ( 27 ("links", ToMany(ToMany, "Products.ZenModel.Link", "endpoints")), 28 ) 29 33 3743 44 45 InitializeClass(Linkable) 4639 """ Removes all links associated with a Linkable """ 40 zlm = dmd.ZenLinkManager 41 for link in self.links(): 42 zlm.manage_removeLink(link.id)
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Thu Oct 25 16:28:30 2007 | http://epydoc.sourceforge.net |