diff options
author | Yun Huang <yun.huang@windriver.com> | 2018-03-06 15:18:16 +0800 |
---|---|---|
committer | Yun Huang <yun.huang@windriver.com> | 2018-03-06 15:18:16 +0800 |
commit | 6d06acd822d0d40ec1d7d749a6ef30e9e5f3d871 (patch) | |
tree | d31af1d869f3abc9c4961923b763ef93b9293ffb /newton/newton/pub | |
parent | 824e19a34feac3183b556da0f9381c3287c519c6 (diff) |
Update Newton license header
Change-Id: I2ee874ab6a4f13e7a5b2fe32f80ba0225d086a9f
Issue-ID: MULTICLOUD-140
Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'newton/newton/pub')
-rw-r--r-- | newton/newton/pub/__init__.py | 10 | ||||
-rw-r--r-- | newton/newton/pub/config/__init__.py | 9 | ||||
-rw-r--r-- | newton/newton/pub/config/config.py | 9 | ||||
-rw-r--r-- | newton/newton/pub/database/__init__.py | 10 | ||||
-rw-r--r-- | newton/newton/pub/database/models.py | 9 | ||||
-rw-r--r-- | newton/newton/pub/exceptions.py | 10 | ||||
-rw-r--r-- | newton/newton/pub/msapi/__init__.py | 10 | ||||
-rw-r--r-- | newton/newton/pub/msapi/extsys.py | 9 | ||||
-rw-r--r-- | newton/newton/pub/tests/__init__.py | 14 | ||||
-rw-r--r-- | newton/newton/pub/utils/__init__.py | 10 | ||||
-rw-r--r-- | newton/newton/pub/utils/enumutil.py | 10 | ||||
-rw-r--r-- | newton/newton/pub/utils/fileutil.py | 10 | ||||
-rw-r--r-- | newton/newton/pub/utils/idutil.py | 10 | ||||
-rw-r--r-- | newton/newton/pub/utils/restcall.py | 9 | ||||
-rw-r--r-- | newton/newton/pub/utils/share_lock.py | 9 | ||||
-rw-r--r-- | newton/newton/pub/utils/syscomm.py | 9 | ||||
-rw-r--r-- | newton/newton/pub/utils/timeutil.py | 9 | ||||
-rw-r--r-- | newton/newton/pub/utils/toscautil.py | 9 | ||||
-rw-r--r-- | newton/newton/pub/utils/values.py | 10 |
19 files changed, 128 insertions, 57 deletions
diff --git a/newton/newton/pub/__init__.py b/newton/newton/pub/__init__.py index 802f3fba..afa702d3 100644 --- a/newton/newton/pub/__init__.py +++ b/newton/newton/pub/__init__.py @@ -1,10 +1,14 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + diff --git a/newton/newton/pub/config/__init__.py b/newton/newton/pub/config/__init__.py index 802f3fba..ae1ce9db 100644 --- a/newton/newton/pub/config/__init__.py +++ b/newton/newton/pub/config/__init__.py @@ -1,10 +1,13 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/newton/newton/pub/config/config.py b/newton/newton/pub/config/config.py index c7663cb2..ec9b92c8 100644 --- a/newton/newton/pub/config/config.py +++ b/newton/newton/pub/config/config.py @@ -1,13 +1,16 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os diff --git a/newton/newton/pub/database/__init__.py b/newton/newton/pub/database/__init__.py index 802f3fba..afa702d3 100644 --- a/newton/newton/pub/database/__init__.py +++ b/newton/newton/pub/database/__init__.py @@ -1,10 +1,14 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + diff --git a/newton/newton/pub/database/models.py b/newton/newton/pub/database/models.py index 0a23fc4e..22785b65 100644 --- a/newton/newton/pub/database/models.py +++ b/newton/newton/pub/database/models.py @@ -1,13 +1,16 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from django.db import models diff --git a/newton/newton/pub/exceptions.py b/newton/newton/pub/exceptions.py index 2adf0ffa..80cf7ed1 100644 --- a/newton/newton/pub/exceptions.py +++ b/newton/newton/pub/exceptions.py @@ -1,14 +1,16 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - +# See the License for the specific language governing permissions and +# limitations under the License. class VimDriverNewtonException(Exception): def __init__(self, message, status_code="", content=""): diff --git a/newton/newton/pub/msapi/__init__.py b/newton/newton/pub/msapi/__init__.py index 802f3fba..afa702d3 100644 --- a/newton/newton/pub/msapi/__init__.py +++ b/newton/newton/pub/msapi/__init__.py @@ -1,10 +1,14 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + diff --git a/newton/newton/pub/msapi/extsys.py b/newton/newton/pub/msapi/extsys.py index bd8b1e4e..2553958c 100644 --- a/newton/newton/pub/msapi/extsys.py +++ b/newton/newton/pub/msapi/extsys.py @@ -1,13 +1,16 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import json import logging diff --git a/newton/newton/pub/tests/__init__.py b/newton/newton/pub/tests/__init__.py index e69de29b..afa702d3 100644 --- a/newton/newton/pub/tests/__init__.py +++ b/newton/newton/pub/tests/__init__.py @@ -0,0 +1,14 @@ +# Copyright (c) 2017-2018 Wind River Systems, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + diff --git a/newton/newton/pub/utils/__init__.py b/newton/newton/pub/utils/__init__.py index 802f3fba..afa702d3 100644 --- a/newton/newton/pub/utils/__init__.py +++ b/newton/newton/pub/utils/__init__.py @@ -1,10 +1,14 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + diff --git a/newton/newton/pub/utils/enumutil.py b/newton/newton/pub/utils/enumutil.py index 4a5c3b10..df2bc308 100644 --- a/newton/newton/pub/utils/enumutil.py +++ b/newton/newton/pub/utils/enumutil.py @@ -1,14 +1,16 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - +# See the License for the specific language governing permissions and +# limitations under the License. def enum(**enums): return type('Enum', (), enums) diff --git a/newton/newton/pub/utils/fileutil.py b/newton/newton/pub/utils/fileutil.py index 304564ad..2ceffdd5 100644 --- a/newton/newton/pub/utils/fileutil.py +++ b/newton/newton/pub/utils/fileutil.py @@ -1,13 +1,17 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os import shutil import logging diff --git a/newton/newton/pub/utils/idutil.py b/newton/newton/pub/utils/idutil.py index 8e344f30..ef53ce57 100644 --- a/newton/newton/pub/utils/idutil.py +++ b/newton/newton/pub/utils/idutil.py @@ -1,13 +1,17 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from redisco import containers as cont diff --git a/newton/newton/pub/utils/restcall.py b/newton/newton/pub/utils/restcall.py index f0c19930..a34a44e4 100644 --- a/newton/newton/pub/utils/restcall.py +++ b/newton/newton/pub/utils/restcall.py @@ -1,13 +1,16 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import six import base64 diff --git a/newton/newton/pub/utils/share_lock.py b/newton/newton/pub/utils/share_lock.py index aba599a2..b63f691c 100644 --- a/newton/newton/pub/utils/share_lock.py +++ b/newton/newton/pub/utils/share_lock.py @@ -1,15 +1,18 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import time diff --git a/newton/newton/pub/utils/syscomm.py b/newton/newton/pub/utils/syscomm.py index 735129a6..9b46f42a 100644 --- a/newton/newton/pub/utils/syscomm.py +++ b/newton/newton/pub/utils/syscomm.py @@ -1,13 +1,16 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import inspect diff --git a/newton/newton/pub/utils/timeutil.py b/newton/newton/pub/utils/timeutil.py index 984bb8d6..0c3dd658 100644 --- a/newton/newton/pub/utils/timeutil.py +++ b/newton/newton/pub/utils/timeutil.py @@ -1,13 +1,16 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import datetime diff --git a/newton/newton/pub/utils/toscautil.py b/newton/newton/pub/utils/toscautil.py index ec6e2009..5c2135ea 100644 --- a/newton/newton/pub/utils/toscautil.py +++ b/newton/newton/pub/utils/toscautil.py @@ -1,13 +1,16 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import json diff --git a/newton/newton/pub/utils/values.py b/newton/newton/pub/utils/values.py index a5b5e3a3..808d977a 100644 --- a/newton/newton/pub/utils/values.py +++ b/newton/newton/pub/utils/values.py @@ -1,14 +1,16 @@ -# Copyright (c) 2017 Wind River Systems, Inc. +# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at: -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - +# See the License for the specific language governing permissions and +# limitations under the License. def ignore_case_get(args, key, def_val=""): if not key: |