#NEWLINE# def map_other_fields( style_settings , website_theme ) : #NEWLINE# #INDENT# other_fields_map = { #NEWLINE# #INDENT# 'heading_text_as' : 'heading_style' , #NEWLINE# 'google_web_font_for_heading' : 'heading_webfont' , #NEWLINE# 'google_web_font_for_text' : 'text_webfont' , #NEWLINE# 'add_css' : 'css' , #NEWLINE# #UNINDENT# } #NEWLINE# for ( from_fieldname , to_fieldname ) in other_fields_map . items ( ) : #NEWLINE# #INDENT# website_theme . set ( to_fieldname , style_settings . get ( from_fieldname ) ) #NEWLINE# #UNINDENT# for fieldname in ( 'apply_style' , 'background_image' , 'background_color' , 'font_size' ) : #NEWLINE# #INDENT# website_theme . set ( fieldname , style_settings . get ( to_fieldname ) )