Beispiel #1
0
 def create_acl_role(self, **attrs):
     """Create ACL role."""
     acl_factory = AccessControlRolesFactory()
     allowed_name_chars = string_utils.Symbols(additional_exclude='*')
     acr_name = acl_factory.generate_string(
         attrs["object_type"],
         allowed_chars=allowed_name_chars.standard_chars)
     return self.create_obj(
         acl_factory.create(name=acr_name, **attrs).__dict__)
Beispiel #2
0
 def create_acl_role(self, **attrs):
   """Create ACL role."""
   acl_factory = AccessControlRolesFactory()
   allowed_name_chars = string_utils.Symbols(additional_exclude='*')
   acr_name = acl_factory.generate_string(
       attrs["object_type"],
       allowed_chars=allowed_name_chars.standard_chars
   )
   return self.create_obj(
       acl_factory.create(name=acr_name, **attrs).__dict__)
Beispiel #3
0
 def create_acl_role(self, **attrs):
   """Create ACL role."""
   acl_factory = AccessControlRolesFactory()
   acr_name = acl_factory.generate_string(attrs["object_type"])
   return self.create_obj(
       acl_factory.create(name=acr_name, **attrs).__dict__)