Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4561)

Issue 7312078: Store session secret in database.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by abentley-home
Modified:
11 years, 2 months ago
Reviewers:
hazmat, mp+147746
Visibility:
Public.

Description

Store session secret in database. Use the database to hold the session secret, so that the data is shared among all instances. hazmat suggested using findAndModify, and this would have required an insert so that there was a record to find. This implementation simply uses insert with a specified _id. Insert fails if a document already exists with that id, so the secret is stored only on the first attempt. https://code.launchpad.net/~abentley/charmworld/multi-charmworld/+merge/147746 (do not edit description out of merge proposal)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -2 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M charmworld/__init__.py View 2 chunks +4 lines, -1 line 0 comments Download
M charmworld/models.py View 2 chunks +17 lines, -0 lines 0 comments Download
M charmworld/test_models.py View 2 chunks +24 lines, -0 lines 0 comments Download
M default.ini View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 2
abentley-home
Please take a look.
11 years, 2 months ago (2013-02-11 19:12:18 UTC) #1
hazmat
11 years, 2 months ago (2013-02-11 20:54:40 UTC) #2
On 2013/02/11 19:12:18, abentley wrote:
> Please take a look.

lgtm, thanks
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b