It seems to me that you store only the class when you instantiate it
the first time.
Try the following to force reserialization:
def debug3():
print counter: %s, counter2: %s len:
%s%(session.counter,session.counter2,
len(session.defManager.allDefs))
defManager = session.defManager
On Friday, 30 March 2012 14:38:39 UTC+11, Limedrop wrote:
M. Picking might not be the issue. I would try to take javascript
out of the equation first. What if you simulated the javascript in a
second server-side controller? See if it can retrieve, update and save the
session?
I
session doesn't seem to have a force an update to me method, so I am just
incrementing a counter.
Can I see the object that you are storing in session?
On Friday, 30 March 2012 01:09:09 UTC-5, Web2py Newbie wrote:
session doesn't seem to have a force an update to me method, so I am
just incrementing a counter.
I meant a simplified version which acts the same way
If instances are pickable then you should be okay. Have you tried saving
them to the session and seeing what happens? Note that sometimes you can
pickle things okay but the unpickle throws the error.
Failing that have a look at the recipe near the bottom of this thread...
On Friday, 30 March 2012 12:04:05 UTC+11, Limedrop wrote:
If instances are pickable then you should be okay. Have you tried saving
them to the session and seeing what happens? Note that sometimes you can
pickle things okay but the unpickle throws the error.
Have you tried saving them to
M. Picking might not be the issue. I would try to take javascript out
of the equation first. What if you simulated the javascript in a second
server-side controller? See if it can retrieve, update and save the
session?
On Friday, March 30, 2012 3:07:59 PM UTC+13, Web2py Newbie wrote:
8 matches
Mail list logo