Changeset 418

Show
Ignore:
Timestamp:
05/07/07 10:39:58 (2 years ago)
Author:
athomas
Message:

cly: Some more terminology switches.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cly/trunk/cly/__init__.py

    r416 r418  
    9898 
    9999class ValidationError(ParseError): 
    100     """Raised when a validator fails. In practise this is rare, as the regex 
    101     for a validator is usually sufficient to rule it out of selection before 
    102     parsing occurs.""" 
     100    """Raised when a variable fails to parse. In practise this is rare, as the 
     101    regex for a variable is usually sufficient to rule it out of selection 
     102    before parsing occurs.""" 
    103103    message = "validation of '$token' failed; $exception" 
    104104 
     
    551551    the constructor. 
    552552 
    553     If ``traversals != 1`` the validator will accumulate values into a list. 
     553    If ``traversals != 1`` the variable will accumulate values into a list. 
    554554    """ 
    555555 
     
    561561 
    562562    def _get_var_name(self): 
    563         """Get the var name for this validator. Will use ``var_name`` if provided 
     563        """Get the var name for this variable. Will use ``var_name`` if provided 
    564564        to the constructor, otherwise it will use the node name.""" 
    565565        if self._var_name is not None: 
     
    580580        the result to the context "vars" member. 
    581581 
    582         Raises ValidationError if the validator raises InvalidMatch. 
     582        Raises ValidationError if the variable raises InvalidMatch. 
    583583 
    584584        >>> c = Context(None, 'foo bar') 
     
    604604 
    605605        Must throw a ValidationError if the input is invalid. Alternate 
    606         validators should override this method. 
     606        variables should override this method. 
    607607 
    608608        >>> v = Variable('Test')