#NEWLINE# @ classmethod #NEWLINE# def GetType( cls , name ) : #NEWLINE# #INDENT# "Get the type for a setting.\n\n    Args:\n      name: str, like 'ca_public_cert_pem' or 'suffix_ca_public_cert_pem'\n          if suffix==True in the SETTINGS[name] dict above.\n    Returns:\n      type like 'pem', 'string', 'random_str', None\n    " #NEWLINE# if ( name in SETTINGS ) : #NEWLINE# #INDENT# return SETTINGS . get ( name , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . get ( 'type' ) #NEWLINE# #UNINDENT# for k in SETTINGS : #NEWLINE# #INDENT# if ( ( 'suffix' in SETTINGS [ cls ] ) and SETTINGS [ k ] [ 'suffix' ] and name . endswith ( ( '_%s' % k ) ) ) : #NEWLINE# #INDENT# return SETTINGS . get ( k , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . get ( 'type' ) #NEWLINE# #UNINDENT# #UNINDENT# return None