| |
Methods defined here:
- __init__(self, key_file, region, environ={'FSCDRIVE': 'S:', 'TMP': 'C:\\TEMP', 'COMPUTERN...s\\Public', 'USERPROFILE': 'C:\\Users\\BRUMDall'}, fpin=<open file '<stdin>', mode 'r' at 0x0158D020>, fpout=<open file '<stdout>', mode 'w' at 0x0158D068>, fperr=<open file '<stderr>', mode 'w' at 0x0158D0B0>)
- Initialize variables, environment and filepointers for CGI script
- get_body(self, fpin=<open file '<stdin>', mode 'r' at 0x0158D020>)
- Get request body
- get_header(self, name, default=None)
- Get a particular header or return default
- get_headers(self, environ={'FSCDRIVE': 'S:', 'TMP': 'C:\\TEMP', 'COMPUTERN...s\\Public', 'USERPROFILE': 'C:\\Users\\BRUMDall'})
- Get request headers
- get_host(self, region)
- Get host for this region
- raise_error(self, text='Unknown')
- Write error message with traceback and exit CGI script
- run(self)
- Relay the request to the API server and send back the response
- set_environ(self, environ={'FSCDRIVE': 'S:', 'TMP': 'C:\\TEMP', 'COMPUTERN...s\\Public', 'USERPROFILE': 'C:\\Users\\BRUMDall'})
- Set environment variables
- set_fp(self, fpin=<open file '<stdin>', mode 'r' at 0x0158D020>, fpout=<open file '<stdout>', mode 'w' at 0x0158D068>, fperr=<open file '<stderr>', mode 'w' at 0x0158D0B0>)
- Set filepointers for input and output
- write_output(self, content_type='text/plain', data='Unknown', fpout=<open file '<stdout>', mode 'w' at 0x0158D068>)
- Write Content-type and data
Data and other attributes defined here:
- body = None
- environ = None
- fpin = None
- fpout = None
- headers = None
- host = None
- key_file = None
- method = None
- region = None
- uri = '/ovissapi/endpoint'
|