def _set_objects_inherit (self, switch): if self.inherited: raise exc.x_access_denied (errctx=u"ACE._get_objects_inherit", errmsg=u"Cannot change an inherited ACE") if switch: self.flags |= ACE_FLAG.OBJECT_INHERIT else: self.flags &= ~ACE_FLAG.OBJECT_INHERIT
def _set_containers_inherit (self, switch): if self.inherited: raise exc.x_access_denied (errctx=u"ACE._get_containers_inherit", errmsg=u"Cannot change an inherited ACE") if switch: self.flags |= ACE_FLAG.CONTAINER_INHERIT else: self.flags &= ~ACE_FLAG.CONTAINER_INHERIT
def _set_objects_inherit(self, switch): if self.inherited: raise exc.x_access_denied(errctx=u"ACE._get_objects_inherit", errmsg=u"Cannot change an inherited ACE") if switch: self.flags |= ACE_FLAG.OBJECT_INHERIT else: self.flags &= ~ACE_FLAG.OBJECT_INHERIT
def _set_containers_inherit(self, switch): if self.inherited: raise exc.x_access_denied(errctx=u"ACE._get_containers_inherit", errmsg=u"Cannot change an inherited ACE") if switch: self.flags |= ACE_FLAG.CONTAINER_INHERIT else: self.flags &= ~ACE_FLAG.CONTAINER_INHERIT
def _set_trustee(self, trustee): if self.inherited: raise exc.x_access_denied(errctx=u"ACE._get_trustee", errmsg=u"Cannot change an inherited ACE") self._trustee = accounts.principal(trustee)
def _set_access(self, access): if self.inherited: raise exc.x_access_denied(errctx=u"ACE._set_access", errmsg=u"Cannot change an inherited ACE") self._access_mask = self._access(access)
def _set_trustee (self, trustee): if self.inherited: raise exc.x_access_denied (errctx=u"ACE._get_trustee", errmsg=u"Cannot change an inherited ACE") self._trustee = accounts.principal (trustee)
def _set_access (self, access): if self.inherited: raise exc.x_access_denied (errctx=u"ACE._set_access", errmsg=u"Cannot change an inherited ACE") self._access_mask = self._access (access)