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

Source Code for Module ZenModel.MibNode

 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 AccessControl import ClassSecurityInfo 
16  from AccessControl import Permissions 
17   
18  from Products.ZenRelations.RelSchema import * 
19   
20  from MibBase import MibBase 
21   
22 -class MibNode(MibBase):
23 24 #syntax = "" 25 access = "" 26 27 _properties = MibBase._properties + ( 28 {'id':'access', 'type':'string', 'mode':'w'}, 29 ) 30 31 _relations = MibBase._relations + ( 32 ("module", ToOne(ToManyCont, "Products.ZenModel.MibModule", "nodes")), 33 ) 34 35 # Screen action bindings (and tab definitions) 36 factory_type_information = ( 37 { 38 'immediate_view' : 'viewMibNode', 39 'actions' : 40 ( 41 { 'id' : 'overview' 42 , 'name' : 'Overview' 43 , 'action' : 'viewMibNode' 44 , 'permissions' : ( Permissions.view, ) 45 }, 46 { 'id' : 'viewHistory' 47 , 'name' : 'Modifications' 48 , 'action' : 'viewHistory' 49 , 'permissions' : ( Permissions.view, ) 50 }, 51 ) 52 }, 53 )
54