The Generalized Mayer-Vietoris Principle