parameters: (cls, entry, _raise_invalid=False, **kw)
return_statement: return validated
docstring: Returns a validated subset of the passed in entry dictionary,
          based on the classes _valid_schema, otherwise returns None.
docstring_summary: Returns a validated subset of the passed in entry dictionary,
          based on the classes _valid_schema, otherwise returns None.
docstring_tokens: Returns a validated subset of the passed in entry dictionary based on the classes _valid_schema otherwise returns None .
function: def validate(cls, entry, _raise_invalid=False, **kw):
          """
          Returns a validated subset of the passed in entry dictionary,
          based on the classes _valid_schema, otherwise returns None.
          """
          try:
              validated = cls._valid_schema.deserialize(entry, **kw)
          except colander.Invalid:
              if _raise_invalid:
                  raise
              validated = None
          return validated
function_tokens: def validate ( cls , entry , _raise_invalid = False , * * kw ) : try : validated = cls . _valid_schema . deserialize ( entry , * * kw ) except colander . Invalid : if _raise_invalid : raise validated = None return validated