[sqlalchemy] Re: just how lazy are backrefs?

2007-02-06 Thread Marco Mariani
Marco Mariani wrote: john.contracts_responsible gives me AttributeError: 'Person' object has no attribute 'contracts_responsabile' this is a cut-n-translate-n-paste typo, should read contracts_responsible of course --~--~-~--~~~---~--~~ You received

[sqlalchemy] Re: just how lazy are backrefs?

2007-02-06 Thread Michael Bayer
yeah im not sure if i can fix that behavior, your call to Person.c.uid is compiling the Person mapper before the Contract mapper has been created. therefore when you call Person.get(), no mappers compile and Contract remains uncompiled, and your contracts_responsible attribute remains