Esempio n. 1
0
 def check_config(self, app_config: CFG) -> None:
     """
     Check if config is correctly setted for caldav features
     """
     app_config.check_mandatory_param(
         "CALDAV__RADICALE_PROXY__BASE_URL",
         app_config.CALDAV__RADICALE_PROXY__BASE_URL,
         when_str="when caldav feature is enabled",
     )
     # TODO - G.M - 2019-05-06 - convert "caldav.radicale.storage.filesystem_folder"
     # as tracim global parameter
     app_config.check_mandatory_param(
         "CALDAV__RADICALE__STORAGE__FILESYSTEM_FOLDER",
         app_config.CALDAV__RADICALE__STORAGE__FILESYSTEM_FOLDER,
         when_str="if caldav feature is enabled",
     )
     app_config.check_directory_path_param(
         "CALDAV__RADICALE__STORAGE__FILESYSTEM_FOLDER",
         app_config.CALDAV__RADICALE__STORAGE__FILESYSTEM_FOLDER,
         writable=True,
     )
     radicale_storage_type = app_config.settings.get("caldav.radicale.storage.type")
     if radicale_storage_type != "multifilesystem":
         raise ConfigurationError(
             '"{}" should be set to "{}"'
             " (currently only valid value)"
             " when {} app is active".format(
                 "caldav.radicale.storage.type", "multifilesystem", "agenda"
             )
         )
Esempio n. 2
0
 def check_config(self, app_config: CFG) -> None:
     if app_config.COLLABORATIVE_DOCUMENT_EDITION__SOFTWARE == COLLABORA_DOCUMENT_EDITION_SLUG:
         app_config.check_mandatory_param(
             "COLLABORATIVE_DOCUMENT_EDITION__COLLABORA__BASE_URL",
             app_config.COLLABORATIVE_DOCUMENT_EDITION__COLLABORA__BASE_URL,
             when_str="if collabora feature is activated",
         )