コード例 #1
0
ファイル: __init__.py プロジェクト: fanjunwei/MyCalDAVServer
 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
コード例 #2
0
 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")
コード例 #3
0
ファイル: __init__.py プロジェクト: Kozea/Radicale
 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")
コード例 #4
0
ファイル: __init__.py プロジェクト: wanddy/Radicale
    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")
コード例 #5
0
ファイル: __init__.py プロジェクト: timgates42/Radicale
    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")