[tg-trunk] Re: mutiple database question

2009-05-25 Thread dakila
yes, I read it, sorry if its not obvious to me. But still have no idea regarding the next steps after creating a second MetaData. Basically how would I create the second sqlalchemy.url and other stuff to indicate the second database to connect to, etc. On May 25, 1:32 pm, Jorge Vargas

[tg-trunk] Re: mutiple database question

2009-05-25 Thread Mark Ramm
The actual connection is done via setup_sqlalchemy in the AppConfig object see configuraiton.py for details. Basically, you can create a subclass of AppConfig.py with a new setup_sqlalchemy method that does whatever you want. We *should* document this in our standard sphinx documentation, but

[tg-trunk] Re: mutiple database question

2009-05-24 Thread Jorge Vargas
On Sat, May 23, 2009 at 9:09 AM, dakila dak...@gmail.com wrote: Hi All, How do I connect to two databases in tg2? I have been reading the information in [1,2], but have no idea how to do it in a quickstarted tg2 application. Did you read the comments in the model.__init__.py it's pretty