noc.bi.models.dashboard

Module Contents

noc.bi.models.dashboard.DAL_NONE = -1
noc.bi.models.dashboard.DAL_RO = 0
noc.bi.models.dashboard.DAL_MODIFY = 1
noc.bi.models.dashboard.DAL_ADMIN = 2
class noc.bi.models.dashboard.DashboardAccess

Bases: mongoengine.document.EmbeddedDocument

user
group
level
class noc.bi.models.dashboard.Dashboard

Bases: mongoengine.document.Document

meta
title
owner
description
tags
format
config
created
changed
access
__str__(self)
get_user_access(self, user)
save(self, force_insert=False, validate=True, clean=True, write_concern=None, cascade=None, cascade_kwargs=None, _refs=None, save_condition=None, **kwargs)
clean_access(self, item=None)

Clean access rights update2 = {“$push”: {“access”: {“$each”: [{“user”: i.user.id, “level”: i.level} for i in items]}}} :param item: All, user, group :return: