You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have solved the problem by calling "user = DBSession.merge(self.request.globals['user'])" at the start of every on_ function. I can then use user.is_online=True and transaction.commit(). Is this a good solution?
Hi,
How can I store online users in my database with the chat example? I can access the current user object but can't persist changes to it.
Using transaction.commit() after changing user.is_online to True results in a DetachedInstanceError.
Thanks,
Daniel
The text was updated successfully, but these errors were encountered: