- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
dash = []
for row in menuconf.dashboard:
_row = []
for col in row:
_col = [col[0]]
for endpoint in col[1:]:
if endpoint in streams.endpoints:
s = streams.endpoints[endpoint]
if issubclass(type(s), Stream):
if s.has_permission(request, 'x'):
_col.append(endpoint)
else:
_col.append(endpoint)
else:
if type(endpoint) is tuple:
add_pair = False
for e in endpoint:
if e in streams.endpoints:
s = streams.endpoints[e]
if issubclass(type(s), Stream):
if s.has_permission(request, 'x'):
add_pair = True
if add_pair:
_col.append(endpoint)
else:
_col.append(endpoint)
if len(_col) > 1:
_row.append(_col)
if _row:
dash.append(_row)