Hello everyone, According to the Pylons wiki docs on multiple engines with SQLALchemy 0.4, I should be able to do:
def init_model(default_engine, alternate_engine): binds = { 'tableA': default_engine, 'tableB': alternate_engine } meta.session = orm.scoped_session(orm.sessionmaker(binds=binds)) This doesn't work for me on Pylons 0.9.6.2 and SQLAlchemy 0.4.7. Is the example out of date? I've reviewed the code in sqlalchemy.orm.sessionmaker and I don't see anything that does something with a kwarg "binds", only "bind" - which leads me to believe that the documentation gives the incorrect approach. -- Ross Vandegrift [EMAIL PROTECTED] "The good Christian should beware of mathematicians, and all those who make empty prophecies. The danger already exists that the mathematicians have made a covenant with the devil to darken the spirit and to confine man in the bonds of Hell." --St. Augustine, De Genesi ad Litteram, Book II, xviii, 37 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---