parameters: (self, permission, roles, REQUEST=None)
docstring: Set a permission for this State.
docstring_summary: Set a permission for this State.
docstring_tokens: Set a permission for this State .
function: def setPermission(self, permission, roles, REQUEST=None):
      """
      Set a permission for this State.
      """
      if self.state_permission_role_list_dict is None:
        self.state_permission_role_list_dict = PersistentMapping()
      self.state_permission_role_list_dict[permission] = tuple(roles)
function_tokens: def setPermission ( self , permission , roles , REQUEST = None ) : if self . state_permission_role_list_dict is None : self . state_permission_role_list_dict = PersistentMapping ( ) self . state_permission_role_list_dict [ permission ] = tuple ( roles )