With all the changes that have occured in the last year regarding the credit criteria for issuing mortgages I would really recommend you present this to a lender for their opinion.
A year and a half ago, I saw Buyer's getting financing within 3 months of coming out of bankruptcy. Now, they did have to pay much higher rates, since they were a higher risk, but if they paid on time and kept up with their payments- they were fine.
But, now - even people with good credit are having challenges with getting financing. You should have someone review with you what your credit scores are, and advise you on a time-table by which you could get back on track.
I would also advise that you be very careful, make sure that you consider what is necessary to keep yourself in financial stability. All the Best to you.