Mercurial > summit-idp
diff summitidp/easy.py @ 62:50297a64414c
Added locking.py for super non-grannular thread safety, and more tests.
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Tue, 29 Jun 2010 11:17:34 -0700 |
parents | 818e16d3f262 |
children | 09c95c2549f3 |
line wrap: on
line diff
--- a/summitidp/easy.py Mon Jun 28 22:32:03 2010 -0700 +++ b/summitidp/easy.py Tue Jun 29 11:17:34 2010 -0700 @@ -4,6 +4,7 @@ from summitidp.app import Server, TokenStore, ProfileStore from summitidp.file_storage import FileStorage +from summitidp.locking import synced_app CHALLENGE_TOKEN_LIFETIME = datetime.timedelta(days=1) AUTH_TOKEN_LIFETIME = None @@ -31,4 +32,4 @@ profiles=ProfileStore(FileStorage(profile_dir)) ) - return server.wsgi_app + return synced_app(server.wsgi_app)