Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
I'm trying to implement a per-session data store for WebKit and this is
what I've done so far (in the attachment).
It is used like this:
def awake(self, t):
SID = self.session().identifier()
self.localizer = store.get(SID, 'localizer')
except cms.config.Error, e:
self.localizer = NoOpLocalizerStub()
self.handleError("Can't create localizer", e)
self.debugContext = store.get(SID, 'dc')
1. Should I guard the class with threading locks?
2. How can I (if I can) get notified when the session is abandoned to be
able to free resources from store?
3. Would it be feasible to manage the db conn. the same way?