Heat oil in a frying pan, add in all the whole garam masala and saute for a min.
Add in onions and saute till it is golden. Now add in ginger and garlic. Saute for a min.
Add in tomatoes and saute till it gets mushy. Now add in coconut and fry till golden.
Add in coriander leaves and give a stir. Take this whole thing in a blender and make it into a fine puree.
Now heat oil in a pressure cooker. Add in some curry leaves.
Add in the ground masala. Mix well and cook till oil separates from it.
Add in green chillies and the spice powders and saute for a min.
Add in vegetables, salt and sugar. Mix well.
Add in some water and bring it to a boil. Cover and pressure cook for 1 whistle. Simmer the flame for 5 mins. Turn off the heat and let the steam escape all by itself.