Thanks! It actually works!

I added lazy=False to:

    phonebook = one_to_one( "Phonebook", lazy=False )

and it loads Phonebook objects piggybacking on main query for
associations. Nice!

I tried:

    AccountPhonebookWeight.mapper.options(eagerload('phonebook'))

as an alternative, hoping to turn on/off this behavior at will, but it
doesn't seem to work. Later I noticed that it returns new mapper, so I
guess I would have to use it manually.


I started playing with SQLAlchemy two days ago and was impressed with
what I saw while reading documentation. Now, two days later, I find it
overwhelming and having trouble to do even the simplest thing (some of
the things from documentation seem to be broken, for example the
"Association Object" section). I'll keep trying for few more days,
while somehow doing my main development.

Thanks again!
Tvrtko


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

Reply via email to