Package ZenRelations
[hide private]
[frames] | no frames]

Source Code for Package ZenRelations

 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  __doc__="""__init__ 
14   
15  Initialize the RelationshipManager Product 
16   
17  $Id: __init__.py,v 1.9 2002/12/06 14:25:57 edahl Exp $""" 
18   
19  __version__ = "$Revision: 1.9 $"[11:-2] 
20   
21  from RelationshipManager import RelationshipManager, addRelationshipManager, \ 
22                                  manage_addRelationshipManager 
23  from ToOneRelationship import ToOneRelationship, addToOneRelationship, \ 
24                                  manage_addToOneRelationship 
25  from ToManyRelationship import ToManyRelationship, addToManyRelationship, \ 
26                                  manage_addToManyRelationship 
27  from ToManyContRelationship import ToManyContRelationship, \ 
28                                  addToManyContRelationship, \ 
29                                  manage_addToManyContRelationship 
30   
31 -def initialize(registrar):
32 registrar.registerClass( 33 RelationshipManager, 34 constructors = (addRelationshipManager, manage_addRelationshipManager)) 35 registrar.registerBaseClass(RelationshipManager) 36 registrar.registerClass( 37 ToOneRelationship, 38 constructors = (addToOneRelationship, manage_addToOneRelationship), 39 icon = 'www/ToOneRelationship_icon.gif') 40 registrar.registerClass( 41 ToManyRelationship, 42 constructors = (addToManyRelationship, manage_addToManyRelationship), 43 icon = 'www/ToManyRelationship_icon.gif') 44 registrar.registerClass( 45 ToManyContRelationship, 46 constructors = (addToManyContRelationship, 47 manage_addToManyContRelationship), 48 icon = 'www/ToManyContRelationship_icon.gif')
49