ValidateElementAction Class Reference

Generic element validation use validation=... More...

+ Inheritance diagram for ValidateElementAction:

Public Member Functions

def __init__ (self, option_strings, validation, validationErrorText, *args, **kwargs)
 
def __call__ (self, parser, namespace, values, option_string=None)
 

Public Attributes

 validation
 
 validationErrorText
 

Detailed Description

Generic element validation use validation=...

to specify a lambda functions that returns True if element is valid and False otherwise use validationErrorText=... to specify the error text that is output if validation fails