Re: sqlalchemy is returning the wrong data

2007-08-08 Thread Tomasz Nazar
On 8/7/07, Mike Orr [EMAIL PROTECTED] wrote: On 8/6/07, jose [EMAIL PROTECTED] wrote: On a different note with my current setup (using extension=sac.ext) I thing that the explicit save (rec.save() from the example above) is not really necessary is it? No, sac.ext implicitly does the

sqlalchemy is returning the wrong data

2007-08-06 Thread jose
I have a perplexing problem and I'm really hopping that there is a setting or something stupid that I've missed. Here is the issue, I have an application most of my page data is coming from a postgres database. I've designed an admin interface which allows you to edit the database, however,

Re: sqlalchemy is returning the wrong data

2007-08-06 Thread askel
let me guess, you do not clear database session before/after each request On Aug 6, 12:02 pm, jose [EMAIL PROTECTED] wrote: I have a perplexing problem and I'm really hopping that there is a setting or something stupid that I've missed. Here is the issue, I have an application most of my

Re: sqlalchemy is returning the wrong data

2007-08-06 Thread Mike Orr
On 8/6/07, jose [EMAIL PROTECTED] wrote: How do I clear the database session? I thought sacontext took care of that? del sac.session_context.current This is normally put in the base controller before the subclass call. If you don't do this before the different users, it will hold records in

Re: sqlalchemy is returning the wrong data

2007-08-06 Thread Jose Galvez
Dear Mike, I added the del sac.session_context.current to my base.py file and that fixed the problem. Thank you so much for the help I can't tell you how much this was driving me nuts Jose On 8/6/07, jose [EMAIL PROTECTED] wrote: Thanks Mike, So just to clarify I need to del the current