Package ZenModel :: Module TemplateContainer
[hide private]
[frames] | no frames]

Source Code for Module ZenModel.TemplateContainer

 1   
 2  ########################################################################### 
 3  # 
 4  # This program is part of Zenoss Core, an open source monitoring platform. 
 5  # Copyright (C) 2008, Zenoss Inc. 
 6  # 
 7  # This program is free software; you can redistribute it and/or modify it 
 8  # under the terms of the GNU General Public License version 2 as published by 
 9  # the Free Software Foundation. 
10  # 
11  # For complete information please visit: http://www.zenoss.com/oss/ 
12  # 
13  ########################################################################### 
14   
15   
16  from Products.ZenRelations.RelSchema import * 
17   
18 -class TemplateContainer(object):
19 """ 20 This mixin is so that different classes can sit on the other 21 end of the RRDTemplate.deviceClass method. 22 """ 23 24 meta_type = 'TemplateContainer' 25 26 _relations = ( 27 # deviceClass is named as such for sad, historical reasons. 28 # Currently the subclasses of TemplateContainer are either 29 # a DeviceClass or a MonitorClass. 30 ('rrdTemplates', 31 ToManyCont(ToOne, 'Products.ZenModel.RRDTemplate', 'deviceClass')), 32 )
33