[sqlalchemy] Re: how to force a clean refresh of a lazy loaded attribute

2007-02-26 Thread Manlio Perillo
Michael Bayer ha scritto: On Feb 25, 2007, at 9:03 AM, Manlio Perillo wrote: Michael Bayer ha scritto: On Feb 23, 2007, at 1:56 PM, Manlio Perillo wrote: Hi again. I have an object attribute loaded via lazy loader. This object is loaded in a transaction. Then, in another

[sqlalchemy] Re: how to force a clean refresh of a lazy loaded attribute

2007-02-26 Thread Jonathan Ellis
you could certainly write a helper function if you find that you do this a lot. I'd be -1 on making it official, it just seems messy to me. (defining collection only as list is sucky; defining collection as anything you can iterate over is problematic because an instance that is itself in the

[sqlalchemy] Re: how to force a clean refresh of a lazy loaded attribute

2007-02-25 Thread Manlio Perillo
Michael Bayer ha scritto: On Feb 23, 2007, at 1:56 PM, Manlio Perillo wrote: Hi again. I have an object attribute loaded via lazy loader. This object is loaded in a transaction. Then, in another transaction, I ussue an update statement (via the sql module, not using the orm), that

[sqlalchemy] Re: how to force a clean refresh of a lazy loaded attribute

2007-02-25 Thread Manlio Perillo
Michael Bayer ha scritto: On Feb 23, 2007, at 1:56 PM, Manlio Perillo wrote: Hi again. I have an object attribute loaded via lazy loader. This object is loaded in a transaction. Then, in another transaction, I ussue an update statement (via the sql module, not using the orm), that

[sqlalchemy] Re: how to force a clean refresh of a lazy loaded attribute

2007-02-24 Thread Michael Bayer
On Feb 23, 2007, at 1:56 PM, Manlio Perillo wrote: Hi again. I have an object attribute loaded via lazy loader. This object is loaded in a transaction. Then, in another transaction, I ussue an update statement (via the sql module, not using the orm), that updates the table of the main