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]
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
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
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