Package CHEM :: Package Web :: Package cgibin :: Module Const
[hide private]
[frames] | no frames]

Module Const



Various constants for use by the web scripts

Variables [hide private]
  OUTPUT_ONLY = 'outputOnly'
  VALUE_DELIM = ','
Delimiter when working with URLs.
  URL_DELIM = '|'
  HTTP_REJECT_HEADERS = [('HTTP_USER_AGENT', 'Googlebot'), ('HTT...
  APPLICATION_NAME = 'CHEM.Web.cgibin'
Default level for application logging.
  LOGGER_LEVEL = 10
Default format of logger output
  LOGGER_FORMAT = '[%(asctime)s %(levelname)s] %(message)s'
Variables Details [hide private]

VALUE_DELIM

Delimiter when working with URLs. Standard VALUE_DELIM may not be safe
Value:
','

HTTP_REJECT_HEADERS

Value:
[('HTTP_USER_AGENT', 'Googlebot'),
 ('HTTP_USER_AGENT', 'Ask Jeeves'),
 ('HTTP_USER_AGENT', 'ConveraCrawler'),
 ('HTTP_USER_AGENT', 'Yahoo! Slurp'),
 ('HTTP_USER_AGENT', 'FAST Enterprise Crawler'),
 ('HTTP_USER_AGENT', 'Crawler'),
 ('HTTP_USER_AGENT', 'robot'),
 ('HTTP_USER_AGENT', 'Twiceler'),
...

APPLICATION_NAME

Default level for application logging. Modify these for different scenarios. See Python logging package documentation for more information
Value:
'CHEM.Web.cgibin'