canezzy

Untitled

Jul 10th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. '''
  2. DODAVANJE PODATAKA
  3. '''
  4. eggs = Ingredient("Eggs", "Chicken eggs")
  5. flour = Ingredient("Flour", "White flour")
  6. milk = Ingredient("Milk", "Pasteurized cow milk")
  7. water = Ingredient("Water", "Plain water")
  8. potato = Ingredient("Potato", "Fresh white potato")
  9. chocolate= Ingredient("Chocolate", "Milk chocolate")
  10. oil = Ingredient("Olive oil", "Olive oil")
  11. parsley = Ingredient("Parsley", "Chopped fresh parsley")
  12. chicken = Ingredient("Chicken breast", "Fresh chicken breast")
  13. kex = Ingredient("Bisquits", "Plazma keks")
  14. salt = Ingredient("Salt", "NaCl")
  15. bread = Ingredient("Bread", "White bread")
  16. ham = Ingredient("Ham", "Smoked pork ham")
  17. cheese = Ingredient("Cheese", "Sandwich cheese")
  18.  
  19. pan = Appliance("Pan")
  20. pot = Appliance("Pot")
  21. bowl = Appliance("Bowl")
  22. mixer = Appliance("Mixer")
  23. toaster = Appliance("Toaster")
  24. blender = Appliance("Blender")
  25. casserole = Appliance("Casserole")
  26. oven = Appliance("Oven")
  27. grater = Appliance("Grater")
  28.  
  29. pancake = Recipe("Pancake", "Homemade pancake\n\n Put 2 eggs, 13tsp of flour, 0.6dl of milk, 0.3dl of water, pinch of salt and pinch of sugar in bowl.\n Mix it with mixer for 2 minutes.\n Put oil in pan to get hot and after few minutes start spreading one by one on hot oil. Bake both sides of pancake and put a tiny bit of oil after every pancake.", 3, 60, 2, False, 400, [pan,bowl,mixer], [], False, 10, 35, 15, "https://img.sndimg.com/food/image/upload/w_896,h_504,c_fill,fl_progressive,q_80/v1/img/recipes/18/41/0/mlUJhy1T3CFzP1eDMACA_DSC_0003.jpg")
  30. chick = Recipe("Chicken breasts with potato", "Buried chicken breast with fried potato\n\n In one plate mix 2 eggs, in other put 3tsp of flour, cut chicken breast in pieces about 1cm thick.\n On the other side, cut potatoes in pieces.\n Put 2 pans with oil to get hot and after few minutes sip potatoes in one.\n Dip chicken breast pieces in flour and then in eggs, and after that sip them in the other pan. Change sides every few minutes.\n After 15 minutes, add one glass of white wine.", 3, 60, 3, False, 450, [pan], [], False, 20, 20, 16, "https://food.fnr.sndimg.com/content/dam/images/food/fullset/2012/10/2/1/FNM_110112-Garlic-and-Chicken-Potatoes-Recipe_s4x3.jpg.rend.hgtvcom.616.462.suffix/1382456485753.jpeg")
  31. sandwich = Recipe("Ham sandwich", "Homemade sandwich with ham and cheese\n\n Slice 4 pieces of bread about 2cm thick.\n Put 3 slices of ham and 1 slice of cheese between them, and put in toaster for 3 minutes and voila", 1, 10, 1, False, 200, [toaster], [], False, 15, 15, 5, "https://www.pumpkinnspice.com/wp-content/uploads/2016/08/grilled-ham-cheese-sandwich-26-1024x683.jpg")
  32. bisquit = Recipe("Plazma shake", "Bisquit and milk desert\n\n Put 5tsp of crumbled bisquits in a cup. Add 1dl of cold milk over it and mix lightly with spoon. You can add some chocolate over it. Bon apetit!", 1, 3, 1, True, 200, [], [], False, 10, 5, 5, "http://kuvar-recepti.info/images/Kuhinja5/plazma_sejk.jpg")
  33.  
  34. eggspancake = RecipeIngredient("2", True, pancake, eggs)
  35. flourpancake = RecipeIngredient("13tsp", True, pancake, flour)
  36. milkpancake = RecipeIngredient("0.6dl", True, pancake, milk)
  37. waterpancake = RecipeIngredient("0.3dl", False, pancake, water)
  38. saltpancake = RecipeIngredient("pinch", False, pancake, salt)
  39.  
  40. eggschick = RecipeIngredient("2", True, chick, eggs)
  41. flourchick = RecipeIngredient("3tsp", True, chick, flour)
  42. chickchick = RecipeIngredient("400g", True, chick, chicken)
  43. potatochick = RecipeIngredient("500g", True, chick, potato)
  44. parsleychick = RecipeIngredient("pinch", False, chick, parsley)
  45.  
  46. breadsandwich = RecipeIngredient("200g", True, sandwich, bread)
  47. hamsandwich = RecipeIngredient("150g", True, sandwich, ham)
  48. cheesesandwich = RecipeIngredient("50g", True, sandwich, cheese)
  49.  
  50. milkbisquit = RecipeIngredient("1dc", True, bisquit, milk)
  51. kexbisquit = RecipeIngredient("150g", True, bisquit, kex)
  52. chocobisquit = RecipeIngredient("pinch", False, bisquit, chocolate)
  53.  
  54.  
  55. pancake.ingredients = [eggspancake, flourpancake, milkpancake, waterpancake, saltpancake]
  56. chick.ingredients = [eggschick, flourchick, chickchick, potatochick, parsleychick]
  57. sandwich.ingredients = [breadsandwich, hamsandwich, cheesesandwich]
  58. bisquit.ingredients = [milkbisquit, kexbisquit, chocobisquit]
  59.  
  60.  
  61. inglist = [eggs, flour, milk, water, potato, chocolate, oil, parsley, chicken, kex, salt, bread, ham, cheese]
  62. applist = [pan, pot, bowl, mixer, toaster, blender, casserole, oven, grater]
  63. reclist = [pancake, chick, sandwich, bisquit]
  64.  
  65.  
  66. Application.instance().recipes = reclist
  67.  
  68. '''
  69. DODAVANJE PODATAKA
  70. '''
Advertisement
Add Comment
Please, Sign In to add comment