|
From: <jo...@ma...> - 2015-12-14 07:49:12
|
I seem to be having troubles getting sqlobject to play nicely with wsgi.
In short, sqlobject seems to be returning the same data that was fetched
before each time, until Apache is restarted.
Example code: (much simplified)
now = Table_Now.get(1)
data["some_field"] = now.some_field
//do something with data{}
but even though the row being returned (I simplified it to the code
above with a single row to try to pinpoint the problem) is actually
being changed in the SQL db (mySQL) sqlobject always returns the same,
old data...
I did see mentioned somewhere about "sqlobject.wsgi_middleware," but I
can't seem to figure out how that is supposed to be implemented, and
unfortunatly, there doesn't seem to be any documentation covering that
anywhere...
Any help would be much appreciated!
|