How to use the httpcore.genDwikiStack function in httpcore

To help you get started, we’ve selected a few httpcore examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github siebenmann / dwiki / View on Github external
# 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,
	return procfunc, (cfg, ms, webs, staticstore, cachestore)