#NEWLINE# def validate_placeholder_name( name ) : #NEWLINE# #INDENT# if ( not isinstance ( name , six . string_types ) ) : #NEWLINE# #INDENT# raise ImproperlyConfigured ( 'Placeholder identifier names need to be of type string. ' ) #NEWLINE# #UNINDENT# if ( not all ( ( ( ord ( char ) < 128 ) for char in name ) ) ) : #NEWLINE# #INDENT# raise ImproperlyConfigured ( "Placeholder identifiers names may not contain non-ascii characters. If you wish your placeholder identifiers to contain non-ascii characters when displayed to users, please use the CMS_PLACEHOLDER_CONF setting with the 'name' key to specify a verbose name." )