def _create_change_list_from_suggestion(suggestion):
 return [{'cmd': exp_domain.CMD_EDIT_STATE_PROPERTY, 'state_name': suggestion.state_name, 'property_name': exp_domain.STATE_PROPERTY_CONTENT, 'new_value': [suggestion.state_content]}]

def _create_change_list_from_suggestion ( suggestion ) : return [ { 'cmd' : exp_domain . CMD_EDIT_STATE_PROPERTY , 'state_name' : suggestion . state_name , 'property_name' : exp_domain . STATE_PROPERTY_CONTENT , 'new_value' : [ suggestion . state_content ] } ]
creates a change list from a suggestion object .