Hi, I am having a little trouble wrapping my head around how to configure my model's __init__.py file for multiple databases. I am working on an application that accesses 3 databases and does reflection on select tables from all three.
I assume I need to comment out this line: metadata = DeclarativeBase.metadata and instead create three metadata instances based on MetaData(), correct? Finally, as I understand it, I can use the "init_model" function to do the mapping for some of them, but I am not understanding where to create the engine object to pass to it. Also, once I have my tables mapped in the function, what do I put in my real model file if anything? Hopefully that stuff makes sense. I am using Python 2.5 and TG2 in a virtualenv on Windows XP. Thanks! Mike --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

