No activity today, make something!
tiddlyweb StoreSet

20160313160658 cdent  

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 kept in tiddlyweb.store should be used, as follows:

tiddler = Tiddler('foo', 'bar')
store = environ['tiddlyweb.store']
tiddler = store.get(tiddler)