Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obtain "_id" value using MongoDB backend #70

Open
rodrigocollavo opened this issue Aug 6, 2014 · 0 comments
Open

Obtain "_id" value using MongoDB backend #70

rodrigocollavo opened this issue Aug 6, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@rodrigocollavo
Copy link

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

@FedericoCeratto FedericoCeratto self-assigned this Aug 6, 2014
@FedericoCeratto FedericoCeratto added this to the v0.11 milestone Aug 6, 2014
@FedericoCeratto FedericoCeratto modified the milestones: v0.12, v0.11 Apr 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants