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
def __init__(self, configuration): """Initialize application.""" super().__init__() self.configuration = configuration self.Auth = auth.load(configuration) self.Collection = storage.load(configuration) self.Rights = rights.load(configuration) self.Web = web.load(configuration) self.encoding = configuration.get("encoding", "request")
def __init__(self, configuration): """Initialize application. ``configuration`` see ``radicale.config`` module. """ super().__init__() self.configuration = configuration self.auth = auth.load(configuration) self.storage = storage.load(configuration) self.rights = rights.load(configuration) self.Web = web.load(configuration) self.encoding = configuration.get("encoding", "request")
def __init__(self, configuration): """Initialize Application. ``configuration`` see ``radicale.config`` module. The ``configuration`` must not change during the lifetime of this object, it is kept as an internal reference. """ super().__init__() self.configuration = configuration self._auth = auth.load(configuration) self._storage = storage.load(configuration) self._rights = rights.load(configuration) self._web = web.load(configuration) self._encoding = configuration.get("encoding", "request")