Ejemplo n.º 1
0
Archivo: _aces.py Proyecto: hashar/WAPT
 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
Ejemplo n.º 2
0
Archivo: _aces.py Proyecto: hashar/WAPT
 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
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 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)
Ejemplo n.º 6
0
 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)
Ejemplo n.º 7
0
Archivo: _aces.py Proyecto: hashar/WAPT
 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)
Ejemplo n.º 8
0
Archivo: _aces.py Proyecto: hashar/WAPT
 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)