1 import os
2 from Products.ZenModel.ZenossSecurity import *
3
5 workdir = os.environ['ZENHOME']+ '/Products/ZenWidgets'
6 return os.path.join(workdir, *args)
7
8 portlets = [
9 {
10 'sourcepath': portletpath('ZenossPortlets/HeartbeatsPortlet.js'),
11 'id': 'HeartbeatsPortlet',
12 'title': 'Zenoss Issues',
13 'permission': ZEN_MANAGE_DMD
14 },
15 {
16 'sourcepath': portletpath('ZenossPortlets/GoogleMapsPortlet.js'),
17 'id': 'GoogleMapsPortlet',
18 'title': 'Google Maps',
19 'permission': ZEN_VIEW
20 },
21 {
22 'sourcepath': portletpath('ZenossPortlets/DeviceIssuesPortlet.js'),
23 'id': 'DeviceIssuesPortlet',
24 'title': 'Device Issues',
25 'permission': ZEN_COMMON
26 },
27 {
28 'sourcepath': portletpath('ZenossPortlets/TopLevelOrgsPortlet.js'),
29 'id': 'TopLevelOrgsPortlet',
30 'title': 'Top Level Organizers',
31 'permission': ZEN_VIEW
32 },
33 {
34 'sourcepath': portletpath('ZenossPortlets/WatchListPortlet.js'),
35 'id': 'WatchListPortlet',
36 'title': 'Watch List',
37 'permission': ZEN_COMMON
38 },
39 {
40 'sourcepath': portletpath('ZenossPortlets/productionStatePortlet.js'),
41 'id': 'ProdStatePortlet',
42 'title': 'Production States',
43 'permission': ZEN_COMMON
44 },
45 ]
46
50