Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# Record WSGI server type in the configuration for later use
# in some circumstances.
cfg['wsgi-server-type'] = stype
ms = model.Model(cfg)
webs = htmlview.WebServices(cfg, ms)
staticstore = None
cachestore = None
if 'staticurl' in cfg:
staticstore = storage.StoragePool(genR(cfg['staticdir']))
if 'cachedir' in cfg:
cachestore = storage.CacheStoragePool(genR(cfg['cachedir']))
# Create the WSGI application.
procfunc = wsgicore.genWSGITop(httpcore.genDwikiStack(cfg),
cfg, ms, webs, staticstore,
cachestore)
return procfunc, (cfg, ms, webs, staticstore, cachestore)