#NEWLINE# def validate_template( template , namespaces ) : #NEWLINE# #INDENT# "\n    Validates that a template (or it's parents if check_inheritance is True)\n    contain all given namespaces\n    " #NEWLINE# if getattr ( settings , 'SEKIZAI_IGNORE_VALIDATION' , False ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# found = get_namespaces ( template ) #NEWLINE# for namespace in namespaces : #NEWLINE# #INDENT# if ( namespace not in found ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True