Great Question about barnkruptcy and home buying!
I think this question would be best posed to your bankruptcy lawyer but in terms of homebuying,
it is my understanding that as long as your in bankruptcy you can now qualify to purchase a home.
Once your out of bankruptcy and have been released it can take up to two years (or more) to get your credit back to a point where you can qualify. A Bankruptcy attorney could best advise you on your particular private matters.