Sauté onions, pepper and garlic in oil until the onions are translucent and golden. Mix in seasonings, spices and brown sugar and remove from heat.
Add to beans in large cook pot, then add corn, tomatoes and pineapple. Simmer for 1/2 hour before serving. May be heated in a slow cooker for two hours, with water as needed to prevent sticking.
Serve with salsa, cheese and sour cream with rice or tortilla chips.