noc.aaa.models.modelprotectionprofile

Module Contents

noc.aaa.models.modelprotectionprofile.MFAL_NONE = -1
noc.aaa.models.modelprotectionprofile.MFAL_HIDDEN = 0
noc.aaa.models.modelprotectionprofile.MFAL_DISABLE = 1
noc.aaa.models.modelprotectionprofile.MFAL_RO = 2
noc.aaa.models.modelprotectionprofile.MFDAL_MODIFY = 3
noc.aaa.models.modelprotectionprofile.perm_lock
noc.aaa.models.modelprotectionprofile.FIELD_PERMISSIONS
noc.aaa.models.modelprotectionprofile.check_model(model_name)
class noc.aaa.models.modelprotectionprofile.FieldAccess

Bases: mongoengine.document.EmbeddedDocument

meta
name
permission
__str__(self)
class noc.aaa.models.modelprotectionprofile.ModelProtectionProfile

Bases: mongoengine.document.Document

meta
name
description
model
field_access
groups
_effective_perm_cache
__str__(self)
save(self, force_insert=False, validate=True, clean=True, write_concern=None, cascade=None, cascade_kwargs=None, _refs=None, save_condition=None, signal_kwargs=None, **kwargs)
classmethod get_effective_permissions(cls, model_id, user)

Returns a set of effective user permissions, counting group and implied ones

classmethod has_editable(cls, model_id, user, field)