/usr/share/paster_templates/webkit/+package+/web/__init__.py_tmpl is in python-pastewebkit 1.0-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 | import os
from paste import wsgilib
from ${package}.sitepage import CONFIG
def urlparser_hook(environ):
if not environ.has_key('${package}.base_href'):
environ['${package}.base_href'] = environ.get('SCRIPT_NAME', '') or '/'
|