Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renaming the xivo package #473

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wazo_confd/_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from wazo_bus.consumer import BusConsumer as Consumer
from wazo_bus.mixins import PublisherMixin, WazoEventMixin
from wazo_bus.base import Base
from xivo.status import Status
from wazo.status import Status


class FlushMixin:
Expand Down
8 changes: 4 additions & 4 deletions wazo_confd/auth.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2014-2022 The Wazo Authors (see the AUTHORS file)
# Copyright 2014-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from xivo.auth_verifier import required_acl, required_tenant, no_auth
from xivo.rest_api_helpers import APIException
from xivo.status import Status
from wazo.auth_verifier import required_acl, required_tenant, no_auth
from wazo.rest_api_helpers import APIException
from wazo.status import Status

from werkzeug.local import LocalProxy as Proxy

Expand Down
6 changes: 3 additions & 3 deletions wazo_confd/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import argparse
import yaml

from xivo.chain_map import ChainMap
from xivo.config_helper import parse_config_file, read_config_file_hierarchy
from xivo.xivo_logging import get_log_level_by_name
from wazo.chain_map import ChainMap
from wazo.config_helper import parse_config_file, read_config_file_hierarchy
from wazo.xivo_logging import get_log_level_by_name

API_VERSION = '1.1'
WIZARD_KEY_FILE = '/var/lib/wazo-auth-keys/wazo-wizard-key.yml'
Expand Down
10 changes: 5 additions & 5 deletions wazo_confd/controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2015-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2015-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

import logging
Expand All @@ -10,10 +10,10 @@
import xivo_dao

from wazo_auth_client import Client as AuthClient
from xivo import plugin_helpers
from xivo.consul_helpers import ServiceCatalogRegistration
from xivo.status import StatusAggregator, TokenStatus
from xivo.token_renewer import TokenRenewer
from wazo import plugin_helpers
from wazo.consul_helpers import ServiceCatalogRegistration
from wazo.status import StatusAggregator, TokenStatus
from wazo.token_renewer import TokenRenewer

from wazo_confd.helpers.asterisk import PJSIPDoc
from wazo_confd.helpers.middleware import MiddleWareHandle
Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/helpers/asterisk.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2018-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

import logging
Expand All @@ -10,7 +10,7 @@
from marshmallow import fields, pre_dump, post_load, pre_load, post_dump
from marshmallow.validate import Length

from xivo.rest_api_helpers import APIException
from wazo.rest_api_helpers import APIException
from xivo_dao.alchemy.asterisk_file_variable import AsteriskFileVariable
from xivo_dao.helpers import errors

Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/helpers/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2013-2019 The Wazo Authors (see the AUTHORS file)
# Copyright 2013-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

import logging
Expand All @@ -9,7 +9,7 @@
from flask_restful.utils import http_status_message
from werkzeug.exceptions import HTTPException

from xivo import rest_api_helpers
from wazo import rest_api_helpers
from xivo_dao.helpers.db_manager import Session
from xivo_dao.helpers.exception import ServiceError, NotFoundError
from wazo_provd_client.exceptions import ProvdError
Expand Down
6 changes: 3 additions & 3 deletions wazo_confd/helpers/restful.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import marshmallow

from xivo.flask.auth_verifier import AuthVerifierFlask
from xivo.mallow import fields, validate
from xivo.tenant_flask_helpers import Tenant, token
from wazo.flask.auth_verifier import AuthVerifierFlask
from wazo.mallow import fields, validate
from wazo.tenant_flask_helpers import Tenant, token
from xivo_dao import tenant_dao

from wazo_confd.helpers.common import handle_api_exception
Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from werkzeug.middleware.profiler import ProfilerMiddleware
from werkzeug.middleware.proxy_fix import ProxyFix

from xivo import http_helpers
from xivo.http_helpers import ReverseProxied
from wazo import http_helpers
from wazo.http_helpers import ReverseProxied
from xivo_dao.helpers.db_manager import Session
from xivo_dao.helpers.db_utils import session_scope
from xivo_dao.resources.infos import dao as info_dao
Expand Down
8 changes: 4 additions & 4 deletions wazo_confd/main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright 2013-2020 The Wazo Authors (see the AUTHORS file)
# Copyright 2013-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

import logging
import sys

from xivo import xivo_logging
from xivo.config_helper import set_xivo_uuid, UUIDNotFound
from xivo.user_rights import change_user
from wazo import xivo_logging
from wazo.config_helper import set_xivo_uuid, UUIDNotFound
from wazo.user_rights import change_user

from wazo_confd.config import load as load_config
from wazo_confd.controller import Controller
Expand Down
8 changes: 4 additions & 4 deletions wazo_confd/plugins/api/resource.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Copyright 2016-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2016-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

import logging
import yaml

from flask import make_response
from flask_restful import Resource
from xivo.chain_map import ChainMap
from xivo.rest_api_helpers import load_all_api_specs
from xivo.http_helpers import reverse_proxy_fix_api_spec
from wazo.chain_map import ChainMap
from wazo.rest_api_helpers import load_all_api_specs
from wazo.http_helpers import reverse_proxy_fix_api_spec

logger = logging.getLogger(__name__)

Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/plugins/call_filter/schema.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2018-2022 The Wazo Authors (see the AUTHORS file)
# Copyright 2018-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from marshmallow import fields, post_dump
from marshmallow.validate import OneOf, Length, Range
from xivo.xivo_helpers import clean_extension
from wazo.xivo_helpers import clean_extension

from wazo_confd.helpers.mallow import BaseSchema, StrictBoolean, Link, ListLink, Nested

Expand Down
2 changes: 1 addition & 1 deletion wazo_confd/plugins/device/funckey.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import abc

from xivo.xivo_helpers import fkey_extension
from wazo.xivo_helpers import fkey_extension
from xivo_dao.resources.extension import dao as extension_dao_module
from xivo_dao.resources.feature_extension import dao as feature_extension_dao_module
from xivo_dao.resources.features import dao as features_dao_module
Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/plugins/device/resource.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright 2016-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2016-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from flask import request, url_for
from xivo.tenant_flask_helpers import Tenant
from wazo.tenant_flask_helpers import Tenant

from wazo_confd.auth import required_acl
from wazo_confd.helpers.restful import (
Expand Down
2 changes: 1 addition & 1 deletion wazo_confd/plugins/func_key/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from xivo_dao.resources.queue import dao as queue_dao
from xivo_dao.resources.user import dao as user_dao
from marshmallow.exceptions import ValidationError
from xivo.mallow import validate as mallow_validate
from wazo.mallow import validate as mallow_validate

from wazo_confd.helpers.validator import (
Validator,
Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/plugins/ha/schema.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2019-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2019-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from marshmallow import validates_schema
from marshmallow.exceptions import ValidationError
from marshmallow.validate import OneOf
from xivo.mallow import fields
from wazo.mallow import fields

from wazo_confd.helpers.mallow import BaseSchema

Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/plugins/line_device/resource.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2016-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2016-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from marshmallow import fields

from xivo.tenant_flask_helpers import Tenant
from wazo.tenant_flask_helpers import Tenant
from wazo_confd.auth import required_acl
from wazo_confd.helpers.mallow import BaseSchema, Link, ListLink
from wazo_confd.helpers.restful import ConfdResource, build_tenant
Expand Down
2 changes: 1 addition & 1 deletion wazo_confd/plugins/localization/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from wazo_confd.auth import required_acl
from wazo_confd.helpers.restful import ConfdResource, build_tenant
from xivo.tenant_flask_helpers import Tenant
from wazo.tenant_flask_helpers import Tenant

from .schema import LocalizationSchema

Expand Down
2 changes: 1 addition & 1 deletion wazo_confd/plugins/localization/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from marshmallow import validates
from marshmallow.validate import Length
from marshmallow.exceptions import ValidationError
from xivo.mallow import fields
from wazo.mallow import fields

from wazo_confd.helpers.mallow import BaseSchema

Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/plugins/meeting/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2022 The Wazo Authors (see the AUTHORS file)
# Copyright 2022-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from xivo.rest_api_helpers import APIException
from wazo.rest_api_helpers import APIException


class MeetingGuestSIPTemplateNotFound(APIException):
Expand Down
2 changes: 1 addition & 1 deletion wazo_confd/plugins/meeting/notifier.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2021-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from xivo.xivo_helpers import clean_extension
from wazo.xivo_helpers import clean_extension
from wazo_bus.resources.meeting.event import (
MeetingCreatedEvent,
MeetingDeletedEvent,
Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/plugins/meeting/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

from flask import url_for, request

from xivo.xivo_helpers import clean_extension
from xivo.tenant_flask_helpers import user
from wazo.xivo_helpers import clean_extension
from wazo.tenant_flask_helpers import user

from xivo_dao.alchemy.meeting import Meeting
from xivo_dao.alchemy.endpoint_sip import EndpointSIP
Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/plugins/meeting/schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021-2022 The Wazo Authors (see the AUTHORS file)
# Copyright 2021-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

import logging
Expand All @@ -7,7 +7,7 @@
from marshmallow import fields
from marshmallow.validate import Length

from xivo.rest_api_helpers import APIException
from wazo.rest_api_helpers import APIException

from wazo_confd.helpers.mallow import BaseSchema, Link, ListLink

Expand Down
2 changes: 1 addition & 1 deletion wazo_confd/plugins/meeting_authorization/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from xivo_dao.alchemy.meeting_authorization import MeetingAuthorization
from xivo_dao.helpers import errors
from xivo_dao.helpers.exception import NotFoundError
from xivo.tenant_flask_helpers import user
from wazo.tenant_flask_helpers import user

from .schema import (
MeetingAuthorizationSchema,
Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/plugins/sound/resource.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright 2017-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2017-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from flask import request, url_for
from xivo.tenant_flask_helpers import Tenant
from wazo.tenant_flask_helpers import Tenant

from wazo_confd.auth import required_acl
from wazo_confd.helpers.restful import ConfdResource, ItemResource, ListResource
Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/plugins/status/plugin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2022 The Wazo Authors (see the AUTHORS file)
# Copyright 2022-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from xivo.status import Status
from wazo.status import Status

from .resource import StatusChecker

Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/plugins/status/resource.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2022 The Wazo Authors (see the AUTHORS file)
# Copyright 2022-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from xivo.auth_verifier import required_acl
from wazo.auth_verifier import required_acl
from wazo_confd.helpers.restful import ConfdResource


Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/plugins/user_external_app/resource.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2020-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2020-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from flask import url_for, request

from xivo.tenant_flask_helpers import Tenant
from wazo.tenant_flask_helpers import Tenant
from xivo_dao import tenant_dao
from xivo_dao.alchemy.user_external_app import UserExternalApp

Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/plugins/user_import/resource.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2015-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2015-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from xivo.tenant_flask_helpers import Tenant
from wazo.tenant_flask_helpers import Tenant
from xivo_dao.helpers.db_manager import Session

from wazo_confd import sysconfd, bus
Expand Down
4 changes: 2 additions & 2 deletions wazo_confd/plugins/user_subscription/resource.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2022-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2022-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from marshmallow import fields

from xivo.tenant_flask_helpers import Tenant
from wazo.tenant_flask_helpers import Tenant

from wazo_confd.auth import required_acl
from wazo_confd.helpers.restful import ConfdResource
Expand Down
8 changes: 4 additions & 4 deletions wazo_confd/purge_meetings.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Copyright 2021-2022 The Wazo Authors (see the AUTHORS file)
# Copyright 2021-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

import argparse
import logging

from datetime import datetime, timedelta, timezone

from xivo import xivo_logging
from xivo.chain_map import ChainMap
from xivo.config_helper import read_config_file_hierarchy
from wazo import xivo_logging
from wazo.chain_map import ChainMap
from wazo.config_helper import read_config_file_hierarchy
from xivo_dao import init_db_from_config
from xivo_dao.helpers.db_utils import session_scope
from xivo_dao.resources.infos import dao as info_dao
Expand Down
8 changes: 4 additions & 4 deletions wazo_confd/sync_db.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright 2020-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2020-2024 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

import argparse
import logging

from xivo import xivo_logging
from xivo.chain_map import ChainMap
from xivo.config_helper import read_config_file_hierarchy
from wazo import xivo_logging
from wazo.chain_map import ChainMap
from wazo.config_helper import read_config_file_hierarchy
from xivo_dao import init_db_from_config
from xivo_dao.alchemy.tenant import Tenant
from xivo_dao.helpers.db_utils import session_scope
Expand Down
Loading