Obtain "_id" value using MongoDB backend
Opened this issue · 0 comments
rodrigocollavo commented
Inside Cork.py script, when a User() is created, it validates for the "_id" in this line:
if session is not None:
try:
self.session_creation_time = session['_creation_time']
self.session_accessed_time = session['_accessed_time']
self.session_id = session['_id']
except:
pass
session['_id'] is not there, I see the username in the session instead of the _id, and I want that _id for making some DBRef on my collections.
Looking at the code for Cork.py and mongodb_backend.py I don't see anything storing the _id in the session.
Is this a bug or missing implementation?
I can make my own query and ask for the _id using the username, buy it's not very effective.
Thanks