On 16 Aralık, 22:22, Michael Bayer [EMAIL PROTECTED] wrote:
On Dec 15, 11:02 pm, Utku Altinkaya [EMAIL PROTECTED] wrote:
I do not want to lose invalid values, becouse I want to send them to
the user again, so while using object as intermediate holder I have to
set attributes invalid
the expire() is requesting a reload.
try moving that after the sending back stuff to user.
Utku Altinkaya wrote:
Hi,
I am using SQLAlchemy on a web application, I have used a base class
for ORM clases which provides soem web related things like validation
and loading data from forms etc.
On 16 Aralık, 17:46, [EMAIL PROTECTED] wrote:
the expire() is requesting a reload.
try moving that after the sending back stuff to user.
The documents says it does not reload until it is accessed if the
object is expired, I think what does the thing you have mantioned is
the refresh method
expiring the obj has the effect that any further access to the object will
auto-refresh it. so if u expire(x) and then say x.a. x will be reloaded
first then u get x.a
Utku Altinkaya wrote:
On 16 Aralık, 17:46, [EMAIL PROTECTED] wrote:
the expire() is requesting a reload.
try moving
On Dec 15, 11:02 pm, Utku Altinkaya [EMAIL PROTECTED] wrote:
I do not want to lose invalid values, becouse I want to send them to
the user again, so while using object as intermediate holder I have to
set attributes invalid values... So Autoflush = False, and if
invalid values are existed