Kirk Strauser schrieb: > If I switch the import lines to: > > # from sqlalchemy.orm import mapper > from turbogears.database import mapper > > and try again, I get: > >>>> <sqlalchemy.orm.scoping.query object at 0x1d8a910> > > In the documentation, it says: > > The mapper function from turbogears.database is identical with > SQLAlchemy's contextual mapper() if you use SQLAlchemy >= 0.4, and > something similar if you use SQLAlchemy < 0.4 > > but I would posit that it's not identical, at least in that you can't use > SA's > instead of TG's and hope for it to work.
The documentation says it is identical with SQLAlchemy's *contextual* mapper function, not with the normal sqlalchemy.orm.mapper function that you were using here. -- Christoph --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

