he was ordained a priest and was a doctoral canon in the cathedral of puebla