StoreSet is a WSGI application in the
server_request_filters stack that sets
tiddlyweb.store in
environ to an instantiated
store. This is done so that any single request only needs to "open" the store once per request.
Some stores will choose to use persistent database handles, manage by the implementor of the
StorageInterface.
In code that is part of the web handlers the store kep in
tiddlyweb.store should be used, as follow:
tiddler = Tiddler('foo', 'bar')
store = environ['tiddlyweb.store']
tiddler = store.get(tiddler)