swampdragon-auth
swampdragon-auth copied to clipboard
User always None (or anonymous)
First thing: SWAMP_DRAGON_CONNECTION = ('swampdragon_auth.socketconnection.HttpDataConnection', '/data') this line thorws an error ImportError: No module named 'swampdragon.socketconnection' But i created a custom connection: from swampdragon_auth.socketconnection import HttpDataConnection when i'm logged in to the admin i always get when i debug the connection that the user is None. and idea why is that?
what i'm trying to do is a chat room that updates the user list on the room so on connection open i want to be able to get a user and and update that list, and when connection close i want to remove that user from the list.. i followed the code that extracts the user from the session and i get an anonymous user.
regular chat works fine.. tnx in advance