parameters: (self, handler, names)
docstring: Setup a handler to be called when a trait should be cross validated.
  
          This is used to setup dynamic notifications for cross-validation.
  
          If a validator is already registered for any of the provided names, a
          TraitError is raised and no new validator is registered.
  
          Parameters
          ----------
          handler : callable
              A callable that is called when the given trait is cross-validated.
              Its signature is handler(proposal), where proposal is a Bunch (dictionary with attribute access)
              with the following attributes/keys:
                  * ``owner`` : the HasTraits instance
                  * ``value`` : the proposed value for the modified trait attribute
                  * ``trait`` : the TraitType instance associated with the attribute
          names : List of strings
              The names of the traits that should be cross-validated
docstring_summary: Setup a handler to be called when a trait should be cross validated.
docstring_tokens: Setup a handler to be called when a trait should be cross validated .
function: def _register_validator(self, handler, names):
          """Setup a handler to be called when a trait should be cross validated.
  
          This is used to setup dynamic notifications for cross-validation.
  
          If a validator is already registered for any of the provided names, a
          TraitError is raised and no new validator is registered.
  
          Parameters
          ----------
          handler : callable
              A callable that is called when the given trait is cross-validated.
              Its signature is handler(proposal), where proposal is a Bunch (dictionary with attribute access)
              with the following attributes/keys:
                  * ``owner`` : the HasTraits instance
                  * ``value`` : the proposed value for the modified trait attribute
                  * ``trait`` : the TraitType instance associated with the attribute
          names : List of strings
              The names of the traits that should be cross-validated
          """
          for name in names:
              magic_name = '_%s_validate' % name
              if hasattr(self, magic_name):
                  class_value = getattr(self.__class__, magic_name)
                  if not isinstance(class_value, ValidateHandler):
                      _deprecated_method(class_value, self.__class__, magic_name,
                          "use @validate decorator instead.")
          for name in names:
              self._trait_validators[name] = handler
function_tokens: def _register_validator ( self , handler , names ) : for name in names : magic_name = '_%s_validate' % name if hasattr ( self , magic_name ) : class_value = getattr ( self . __class__ , magic_name ) if not isinstance ( class_value , ValidateHandler ) : _deprecated_method ( class_value , self . __class__ , magic_name , "use @validate decorator instead." ) for name in names : self . _trait_validators [ name ] = handler