(self)
return foods
Food items by food_code
Food items by food_code
Food items by food_code
def foods(self):
        """Food items by food_code"""
        foods = {}
        for item_dict in self._get_fixture_dicts(Food.table_name):
            item_dict['food_name'] = item_dict[self._localize('food_name')]
            item_dict['food_base_term'] = item_dict[self._localize('food_base_term')]
            food = _wrap(Food, item_dict)
            foods[food.food_code] = food
        return foods
def foods ( self ) : foods = { } for item_dict in self . _get_fixture_dicts ( Food . table_name ) : item_dict [ 'food_name' ] = item_dict [ self . _localize ( 'food_name' ) ] item_dict [ 'food_base_term' ] = item_dict [ self . _localize ( 'food_base_term' ) ] food = _wrap ( Food , item_dict ) foods [ food . food_code ] = food return foods