On Sep 1, 6:19 pm, [EMAIL PROTECTED] wrote:
> On Sep 1, 1:39 pm, Kristian Thy <[EMAIL PROTECTED]> wrote:
> >     DBSession.mapper(Advice, advice_table)
>
>        ^^^^^^^^^^^^
>
> You need to do:
>
> from sqlalchemy.orm import mapper
>
> mapper(Advice, advice_table)

Indeed, that worked - thanks!

I copied the syntax from the identity.py model file. Is that file in
error, or does it use the DBSession.mapper syntax for a particular
reason?

\\kristian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to