Hi, Thx Paul for not blaming me for asking the multiple db question again ;-). Yes, I think my case is different. I accept that I cannot use SQLObject or another ORM for accessing MS-Access, but that's not a problem as the DAO way of accessing the legacy DB is just fine for this case. I'll try your hint at work tomorrow.
Thx On Apr 10, 7:11 pm, Paul Johnston <[EMAIL PROTECTED]> wrote: > Hi, > > >I was just wondering how I can access 2 or even more databases within > >TG. The concrete case is a TG app that should make a bridge between a > >legacy business app (based on a MS Access Jet database) and a new app > > Others have pointed out the general solution, but yours is quite a > specific case. To my knowledge, neither SQLObject nor SQLAlchemy support > Access, and I see you are connecting by hand. The problem that you > aren't taking a step you need to for multithreaded apps. Add the > following, before you make the connection: > > import pythoncom > pythoncom.CoInitialize() > > Good luck! > > Paul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

