It might be helpful if you could clarify the situation. The increase in foreclosures has had an affect on renters throughout the Bay Area. Different cities have different tenant laws. In Oakland there is a Just Cause Eviction Law called Mesure EE. If the property in question is being foreclosed upon, the tenants may be contacted directly from the bank regarding moving out of the property. If the property is in or is already foreclosed upon, the landlord cannot evict a tenant based on foreclosure and must follow local laws and ordinances.
If you could clarify the situation it would help to provide better information. You can also contact the Oakland Rent Control Board at: http://cedaonline.oaklandnet.com/rentadjustmentsite/index.htm
Also since this question was posted in the San Francisco area and it is not clear if you are speaking of San Francisco or Oakland the SF Rent Control Board website is located at http://www.sfgov.org/site/rentboard_index.asp
I would suggest making contact with the local rent control board to discuss your situation.
Hope this helps! If you have any other questions feel free to contact me.
Alain Pinel Realtors