Hi Thanks for your replies. I've been experimenting a bit to try and find out exactly what is going on. But have not been able to explain it. Reloading the page several times presents the user objects in the different states it has been in while the app has been running. Printing out id(identity.user.current) says it's the same object on every request. And it does not seem to be a browser cache problem since every requests hits the cherrypy server.. Using expire on every view request seems to solve the problem.
Again, thanks for to the both of you for your answers. Cheers Tonny On Sep 23, 12:05 pm, Felix Schwarz <[EMAIL PROTECTED]> wrote: > Tonny, > > Tonny Staunsbrink wrote: > > Since cherrypy is multi threaded, could it be that each thread has it > > own version of the user object? If that is on purpose, what am I doing > > wrong. How should I update the user object? > > I'm not sure if I understood your problem entirely but SQLObject provides an > expire() method which you can use to force SQLObject to get new values from > the > database. > > e.g. > user.expire() > > I think it would help if you can provide a small self-contained test case. Of > course, writing test cases is not easy but they help us diagnosing the > problem. > Speaking from my own experience, I find the error in approx. 80% before even > sending the test case to the list. Furthermore a separate test case speeds up > debugging. > > hth > > -- > Felix Schwarz > software development and Linux system administration > main focus: secure database applications > > Gubener Str. 38 > 10243 Berlin > Germany --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

