From 69fdccbd3c74fe1ea1aed5d65383749f774c48a5 Mon Sep 17 00:00:00 2001 From: Alexey Weyl Date: Mon, 16 Nov 2015 00:16:14 +0000 Subject: [PATCH] Add common directories and initializers Change-Id: Ia5df79c54b1ac0185354d75f3958e157c6029a64 --- __init__.py | 15 +++++++++++++++ vitrage/__init__.py | 4 ++-- vitrage/api/__init__.py | 15 +++++++++++++++ vitrage/cmd/__init__.py | 15 +++++++++++++++ vitrage/db/__init__.py | 15 +++++++++++++++ vitrage/entitygraph/__init__.py | 15 +++++++++++++++ vitrage/entitygraph/dbmanager/__init__.py | 15 +++++++++++++++ vitrage/entitygraph/dbmanager/alarm.py | 15 +++++++++++++++ vitrage/entitygraph/dbmanager/base.py | 15 +++++++++++++++ vitrage/entitygraph/dbmanager/resource.py | 15 +++++++++++++++ vitrage/entitygraph/processor/__init__.py | 15 +++++++++++++++ vitrage/entitygraph/processor/alarm.py | 15 +++++++++++++++ vitrage/entitygraph/processor/base.py | 15 +++++++++++++++ vitrage/entitygraph/processor/resource.py | 15 +++++++++++++++ vitrage/entitygraph/strategy/__init__.py | 15 +++++++++++++++ vitrage/entitygraph/strategy/base.py | 15 +++++++++++++++ vitrage/entitygraph/synchronizer/__init__.py | 15 +++++++++++++++ .../synchronizer/converter/__init__.py | 15 +++++++++++++++ vitrage/entitygraph/synchronizer/listener.py | 15 +++++++++++++++ .../entitygraph/synchronizer/pollster/__init__.py | 15 +++++++++++++++ .../synchronizer/pollster/resources_and_alarms.py | 15 +++++++++++++++ vitrage/locale/__init__.py | 15 +++++++++++++++ vitrage/tests/__init__.py | 15 +++++++++++++++ vitrage/tests/base.py | 5 +---- vitrage/tests/test_vitrage.py | 4 ++-- 25 files changed, 335 insertions(+), 8 deletions(-) create mode 100644 __init__.py create mode 100644 vitrage/api/__init__.py create mode 100644 vitrage/cmd/__init__.py create mode 100644 vitrage/db/__init__.py create mode 100644 vitrage/entitygraph/__init__.py create mode 100644 vitrage/entitygraph/dbmanager/__init__.py create mode 100644 vitrage/entitygraph/dbmanager/alarm.py create mode 100644 vitrage/entitygraph/dbmanager/base.py create mode 100644 vitrage/entitygraph/dbmanager/resource.py create mode 100644 vitrage/entitygraph/processor/__init__.py create mode 100644 vitrage/entitygraph/processor/alarm.py create mode 100644 vitrage/entitygraph/processor/base.py create mode 100644 vitrage/entitygraph/processor/resource.py create mode 100644 vitrage/entitygraph/strategy/__init__.py create mode 100644 vitrage/entitygraph/strategy/base.py create mode 100644 vitrage/entitygraph/synchronizer/__init__.py create mode 100644 vitrage/entitygraph/synchronizer/converter/__init__.py create mode 100644 vitrage/entitygraph/synchronizer/listener.py create mode 100644 vitrage/entitygraph/synchronizer/pollster/__init__.py create mode 100644 vitrage/entitygraph/synchronizer/pollster/resources_and_alarms.py create mode 100644 vitrage/locale/__init__.py diff --git a/__init__.py b/__init__.py new file mode 100644 index 000000000..7a05fb1f4 --- /dev/null +++ b/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author__ = 'stack' diff --git a/vitrage/__init__.py b/vitrage/__init__.py index ab1df577c..13d4df1d0 100644 --- a/vitrage/__init__.py +++ b/vitrage/__init__.py @@ -1,5 +1,5 @@ -# -*- coding: utf-8 -*- - +# Copyright 2015 - Alcatel-Lucent +# # 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 diff --git a/vitrage/api/__init__.py b/vitrage/api/__init__.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/api/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/cmd/__init__.py b/vitrage/cmd/__init__.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/cmd/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/db/__init__.py b/vitrage/db/__init__.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/db/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/__init__.py b/vitrage/entitygraph/__init__.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/dbmanager/__init__.py b/vitrage/entitygraph/dbmanager/__init__.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/dbmanager/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/dbmanager/alarm.py b/vitrage/entitygraph/dbmanager/alarm.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/dbmanager/alarm.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/dbmanager/base.py b/vitrage/entitygraph/dbmanager/base.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/dbmanager/base.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/dbmanager/resource.py b/vitrage/entitygraph/dbmanager/resource.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/dbmanager/resource.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/processor/__init__.py b/vitrage/entitygraph/processor/__init__.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/processor/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/processor/alarm.py b/vitrage/entitygraph/processor/alarm.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/processor/alarm.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/processor/base.py b/vitrage/entitygraph/processor/base.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/processor/base.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/processor/resource.py b/vitrage/entitygraph/processor/resource.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/processor/resource.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/strategy/__init__.py b/vitrage/entitygraph/strategy/__init__.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/strategy/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/strategy/base.py b/vitrage/entitygraph/strategy/base.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/strategy/base.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/synchronizer/__init__.py b/vitrage/entitygraph/synchronizer/__init__.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/synchronizer/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/synchronizer/converter/__init__.py b/vitrage/entitygraph/synchronizer/converter/__init__.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/synchronizer/converter/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/synchronizer/listener.py b/vitrage/entitygraph/synchronizer/listener.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/synchronizer/listener.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/synchronizer/pollster/__init__.py b/vitrage/entitygraph/synchronizer/pollster/__init__.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/synchronizer/pollster/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/entitygraph/synchronizer/pollster/resources_and_alarms.py b/vitrage/entitygraph/synchronizer/pollster/resources_and_alarms.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/entitygraph/synchronizer/pollster/resources_and_alarms.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/locale/__init__.py b/vitrage/locale/__init__.py new file mode 100644 index 000000000..0011fca79 --- /dev/null +++ b/vitrage/locale/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author = 'stack' diff --git a/vitrage/tests/__init__.py b/vitrage/tests/__init__.py index e69de29bb..7a05fb1f4 100644 --- a/vitrage/tests/__init__.py +++ b/vitrage/tests/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2015 - Alcatel-Lucent +# +# 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. + +__author__ = 'stack' diff --git a/vitrage/tests/base.py b/vitrage/tests/base.py index 1c30cdb56..dcd985432 100644 --- a/vitrage/tests/base.py +++ b/vitrage/tests/base.py @@ -1,7 +1,4 @@ -# -*- coding: utf-8 -*- - -# Copyright 2010-2011 OpenStack Foundation -# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. +# Copyright 2015 - Alcatel-Lucent # # 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 diff --git a/vitrage/tests/test_vitrage.py b/vitrage/tests/test_vitrage.py index 7f653275a..347c54053 100644 --- a/vitrage/tests/test_vitrage.py +++ b/vitrage/tests/test_vitrage.py @@ -1,5 +1,5 @@ -# -*- coding: utf-8 -*- - +# Copyright 2015 - Alcatel-Lucent +# # 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