1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 from Globals import InitializeClass
16 from Globals import DTMLFile
17 from AccessControl import ClassSecurityInfo, Permissions
18 from Products.ZenModel.ZenModelRM import ZenModelRM
19 from Products.ZenModel.ZenPackable import ZenPackable
20 from Products.ZenRelations.RelSchema import *
21
22 import logging
23 log = logging.getLogger("zen.Menu")
24
26
27 meta_type = 'ZenMenuItem'
28 security = ClassSecurityInfo()
29 description = ""
30 action = ""
31 permissions = (Permissions.view,)
32 isglobal = True
33 isdialog = False
34 banned_classes = ()
35 allowed_classes = ()
36 ordering = 0.0
37
38 _properties = (
39 {'id':'description', 'type':'text', 'mode':'w'},
40 {'id':'action', 'type':'text', 'mode':'w'},
41 {'id':'isglobal', 'type':'boolean','mode':'w'},
42 {'id':'permissions', 'type':'lines', 'mode':'w'},
43 {'id':'banned_classes','type':'lines','mode':'w'},
44 {'id':'allowed_classes','type':'lines','mode':'w'},
45 {'id':'isdialog', 'type':'boolean','mode':'w'},
46 {'id':'ordering', 'type':'float','mode':'w'},
47 )
48
49 _relations = (
50 ("zenMenus", ToOne(ToManyCont, 'Products.ZenModel.ZenMenu', 'zenMenuItems')),
51 ) + ZenPackable._relations
52
53 security = ClassSecurityInfo()
54
56 parent = self
57 for x in range(4):
58 parent = parent.getParentNode()
59 return parent
60
68
69 InitializeClass(ZenMenuItem)
70