[sqlalchemy] execute at beginning of every session

2011-02-16 Thread Landreville
Hi, I am trying to set a session variable (call a function with a value) in postgres at the beginning of every session that SQLAlchemy starts. I'm using the session variable to specify the currently logged in user for an auditing system (just a trigger on a couple tables). I have tried the

[sqlalchemy] appropriate place for before insert

2010-10-01 Thread Landreville
the session). Thanks, Landreville -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more

[sqlalchemy] Re: appropriate place for before insert

2010-10-01 Thread Landreville
are much smaller. Sounds good. I suppose I would most often raise an exception to rollback the entire flush, but in rare cases I might want to go ahead and save the rest of the object I would just detach one from the session and delete it. Thanks for you reply, Landreville -- You received