def date_validator(opt_dict, name, value): """validate and return a mx DateTime object for option of type 'date'""" return check_password(None, name, value)
def password_validator(opt_dict, name, value): """validate and return a string for option of type 'password'""" return check_password(None, name, value)