/usr/share/pyshared/dap/responses/help.py is in python-dap 2.2.6.7-2.
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 8 9 10 11 12 13 14 15 16 17 18 19 20 | from paste.request import construct_url
from dap.lib import __dap__
def build(self, constraints=None, message=''):
"""Help response."""
headers = [('XDODS-Server', 'dods/%s' % '.'.join([str(i) for i in __dap__])),
('Content-type', 'text/html'),
]
if message:
output = [message]
else:
location = construct_url(self.environ, with_query_string=False)[:-len('.help')]
output = ["<p>To access this file, use the URL <code>%s</code>.</p>" % location]
return headers, output
|