Skip to content

Commit d897e1e

Browse files
authored
chore(svc-mysql): update copyright entity in source file headers (#2889)
1 parent cc0c207 commit d897e1e

30 files changed

Lines changed: 399 additions & 433 deletions

svc-mysql/manage.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1+
#!/usr/bin/env python
12
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
3+
# TencentBlueKing is pleased to support the open source community by making
4+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5+
# Copyright (C) Tencent. All rights reserved.
6+
# Licensed under the MIT License (the "License"); you may not use this file except
7+
# in compliance with the License. You may obtain a copy of the License at
8+
#
9+
# http://opensource.org/licenses/MIT
10+
#
11+
# Unless required by applicable law or agreed to in writing, software distributed under
12+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13+
# either express or implied. See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# We undertake not to change the open source license (MIT license) applicable
17+
# to the current version of the project delivered to anyone in the future.
818

9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
1919
import os
2020
import sys
2121

svc-mysql/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
##
33
## TencentBlueKing is pleased to support the open source community by making
44
## 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
## Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
5+
## Copyright (C) Tencent. All rights reserved.
66
## Licensed under the MIT License (the "License"); you may not use this file except
77
## in compliance with the License. You may obtain a copy of the License at
88
##

svc-mysql/static/js/bk-magic-vue.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

svc-mysql/svc_mysql/__init__.py

100755100644
Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
8-
9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.

svc-mysql/svc_mysql/middleware.py

100755100644
Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
8-
9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.
1917

2018
from typing import Dict
2119

svc-mysql/svc_mysql/settings/__init__.py

100755100644
Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
8-
9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.
1917

2018
import logging
2119
import os
@@ -41,15 +39,15 @@ class PatchFeatures:
4139

4240
@cached_property
4341
def minimum_database_version(self):
44-
if self.connection.mysql_is_mariadb: # noqa
42+
if self.connection.mysql_is_mariadb:
4543
return (10, 4)
4644
else:
4745
return (5, 7)
4846

4947

5048
# Django 4.2+ 不再官方支持 Mysql 5.7,但目前 Django 仅是对 5.7 做了软性的不兼容改动,
5149
# 在没有使用 8.0 特异的功能时,对 5.7 版本的使用无影响,为兼容存量的 Mysql 5.7 DB 做此 Patch
52-
DatabaseFeatures.minimum_database_version = PatchFeatures.minimum_database_version # noqa
50+
DatabaseFeatures.minimum_database_version = PatchFeatures.minimum_database_version
5351

5452
pymysql.install_as_MySQLdb()
5553
# Patch version info to force pass Django client check
@@ -205,7 +203,7 @@ def get_logging_config(log_level="DEBUG"):
205203
"disable_existing_loggers": False,
206204
"formatters": {
207205
"verbose": {
208-
"format": "%(levelname)s [%(asctime)s] %(name)s(ln:%(lineno)d): %(message)s", # noqa
206+
"format": "%(levelname)s [%(asctime)s] %(name)s(ln:%(lineno)d): %(message)s",
209207
"datefmt": "%Y-%m-%d %H:%M:%S",
210208
},
211209
"simple": {"format": "%(levelname)s %(message)s"},

svc-mysql/svc_mysql/urls.py

100755100644
Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
8-
9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.
1917

2018
from django.contrib import admin
2119
from django.urls import include, re_path

svc-mysql/svc_mysql/vendor/__init__.py

100755100644
Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.
817

9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
1918
default_app_config = "svc_mysql.vendor.apps.VendorConfig"

svc-mysql/svc_mysql/vendor/apps.py

100755100644
Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.
817

9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
1918
from django.apps import AppConfig
2019

2120

svc-mysql/svc_mysql/vendor/constants.py

100755100644
Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
TencentBlueKing is pleased to support the open source community by making
4-
蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
5-
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
6-
Licensed under the MIT License (the "License"); you may not use this file except
7-
in compliance with the License. You may obtain a copy of the License at
8-
9-
http://opensource.org/licenses/MIT
10-
11-
Unless required by applicable law or agreed to in writing, software distributed under
12-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13-
either express or implied. See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
We undertake not to change the open source license (MIT license) applicable
17-
to the current version of the project delivered to anyone in the future.
18-
"""
2+
# TencentBlueKing is pleased to support the open source community by making
3+
# 蓝鲸智云 - PaaS 平台 (BlueKing - PaaS System) available.
4+
# Copyright (C) Tencent. All rights reserved.
5+
# Licensed under the MIT License (the "License"); you may not use this file except
6+
# in compliance with the License. You may obtain a copy of the License at
7+
#
8+
# http://opensource.org/licenses/MIT
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed under
11+
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12+
# either express or implied. See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# We undertake not to change the open source license (MIT license) applicable
16+
# to the current version of the project delivered to anyone in the future.
17+
1918
from enum import IntEnum
2019

2120

@@ -26,7 +25,7 @@ class MySQLAuthTypeEnum(IntEnum):
2625

2726
CREATE_USER_FMT = "create user `{db_user}`@`{auth_ip}` identified by '{db_password}';"
2827

29-
GRANT_SQL_FMT = "grant {privileges} on `{db_name}`.* " "to `{db_user}`@`{auth_ip}`;"
28+
GRANT_SQL_FMT = "grant {privileges} on `{db_name}`.* to `{db_user}`@`{auth_ip}`;"
3029

3130
REVOKE_SQL_FMT = "revoke {privileges} on `{db_name}`.* from `{db_user}`@{auth_ip};"
3231

0 commit comments

Comments
 (0)