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

Source Code for Module Products.ZenModel.MibNode

 1  ############################################################################## 
 2  #  
 3  # Copyright (C) Zenoss, Inc. 2007, all rights reserved. 
 4  #  
 5  # This content is made available according to terms specified in 
 6  # License.zenoss under the directory where your Zenoss product is installed. 
 7  #  
 8  ############################################################################## 
 9   
10   
11  import Globals 
12  from AccessControl import Permissions 
13  from Products.ZenModel.ZenossSecurity import * 
14   
15  from Products.ZenRelations.RelSchema import * 
16   
17  from MibBase import MibBase 
18   
19 -class MibNode(MibBase):
20 21 #syntax = "" 22 access = "" 23 24 _properties = MibBase._properties + ( 25 {'id':'access', 'type':'string', 'mode':'w'}, 26 ) 27 28 _relations = MibBase._relations + ( 29 ("module", ToOne(ToManyCont, "Products.ZenModel.MibModule", "nodes")), 30 ) 31 32 # Screen action bindings (and tab definitions) 33 factory_type_information = ( 34 { 35 'immediate_view' : 'viewMibNode', 36 'actions' : 37 ( 38 { 'id' : 'overview' 39 , 'name' : 'Overview' 40 , 'action' : 'viewMibNode' 41 , 'permissions' : ( Permissions.view, ) 42 }, 43 ) 44 }, 45 )
46