示例#1
0
 def address_string(self):
     """Client address, formatted for logging."""
     if config.getboolean("server", "dns_lookup"):
         return \
             wsgiref.simple_server.WSGIRequestHandler.address_string(self)
     else:
         return self.client_address[0]
示例#2
0
 def __init__(self):
     """Initialize application."""
     super(Application, self).__init__()
     self.acl = acl.load()
     self.encoding = config.get("encoding", "request")
     if config.getboolean('logging', 'full_environment'):
         self.headers_log = lambda environ: environ
示例#3
0
 def __init__(self):
     """Initialize application."""
     super(Application, self).__init__()
     self.acl = acl.load()
     storage.load()
     self.encoding = config.get("encoding", "request")
     if config.getboolean('logging', 'full_environment'):
         self.headers_log = lambda environ: environ
示例#4
0
 def __init__(self):
     """Initialize application."""
     super(Application, self).__init__()
     auth.load()
     storage.load()
     rights.load()
     self.encoding = config.get("encoding", "request")
     if config.getboolean("logging", "full_environment"):
         self.headers_log = lambda environ: environ