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

# Source Code for Module Products.ZenModel.MibNotification

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