Refinish before or after painting?

Q: Is it better to have hardwood floors refinished before you re-paint or after you paint?

A: In my case, since I use a dust collection system with my sanders, painting would be done first. Otherwise, a good compromise might be to do the floors with a couple of coats of finish, then have the flooring person back off and let the painters do their thing. Then have the floor finisher come back for a final buff and coat.