You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/10/13 13:06:41 UTC
[18/50] stratos git commit: Added Apache licence header
Added Apache licence header
Signed-off-by: Imesh Gunaratne <im...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/90bbb374
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/90bbb374
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/90bbb374
Branch: refs/heads/stratos-4.1.x
Commit: 90bbb37455c46d1f108fc7ae5269ae49d6f5aeb9
Parents: 105ecbf
Author: Milindu Sanoj Kumarage <ag...@gmail.com>
Authored: Sat Aug 1 22:33:49 2015 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Tue Oct 13 16:32:46 2015 +0530
----------------------------------------------------------------------
.../src/main/python/cli/CLI.py | 17 +++++++++++++++++
.../src/main/python/cli/Configs.py | 17 +++++++++++++++++
.../src/main/python/cli/Logging.py | 17 +++++++++++++++++
.../src/main/python/cli/Main.py | 17 +++++++++++++++++
.../src/main/python/cli/Stratos.py | 17 +++++++++++++++++
.../src/main/python/cli/Utils.py | 17 +++++++++++++++++
.../src/main/python/cli/__init__.py | 17 +++++++++++++++++
.../python/cli/exceptions/AuthenticationError.py | 17 +++++++++++++++++
.../src/main/python/cli/exceptions/__init__.py | 18 +++++++++++++++++-
.../src/main/python/setup.py | 17 +++++++++++++++++
.../src/main/python/tests/__init__.py | 17 +++++++++++++++++
.../src/main/python/tests/test_print.py | 17 +++++++++++++++++
.../python/tests/test_printable_tree_print.py | 17 +++++++++++++++++
13 files changed, 221 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/90bbb374/components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py b/components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py
index 821e47f..3025f6b 100755
--- a/components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
from cmd2 import *
from Utils import *
from Stratos import *
http://git-wip-us.apache.org/repos/asf/stratos/blob/90bbb374/components/org.apache.stratos.python.cli/src/main/python/cli/Configs.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/Configs.py b/components/org.apache.stratos.python.cli/src/main/python/cli/Configs.py
index 07a3380..387b129 100644
--- a/components/org.apache.stratos.python.cli/src/main/python/cli/Configs.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/cli/Configs.py
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
import os
stratos_prompt = "stratos> "
http://git-wip-us.apache.org/repos/asf/stratos/blob/90bbb374/components/org.apache.stratos.python.cli/src/main/python/cli/Logging.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/Logging.py b/components/org.apache.stratos.python.cli/src/main/python/cli/Logging.py
index 3451bca..3caa892 100644
--- a/components/org.apache.stratos.python.cli/src/main/python/cli/Logging.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/cli/Logging.py
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
import logging
import os
import Configs
http://git-wip-us.apache.org/repos/asf/stratos/blob/90bbb374/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py b/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py
index d6ef2d5..78b3572 100755
--- a/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
import sys
import readline
import getpass
http://git-wip-us.apache.org/repos/asf/stratos/blob/90bbb374/components/org.apache.stratos.python.cli/src/main/python/cli/Stratos.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/Stratos.py b/components/org.apache.stratos.python.cli/src/main/python/cli/Stratos.py
index a063f1c..72c1c71 100755
--- a/components/org.apache.stratos.python.cli/src/main/python/cli/Stratos.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/cli/Stratos.py
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
import requests
import Configs
from cli.exceptions.AuthenticationError import AuthenticationError
http://git-wip-us.apache.org/repos/asf/stratos/blob/90bbb374/components/org.apache.stratos.python.cli/src/main/python/cli/Utils.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/Utils.py b/components/org.apache.stratos.python.cli/src/main/python/cli/Utils.py
index aa4b8de..bc33642 100644
--- a/components/org.apache.stratos.python.cli/src/main/python/cli/Utils.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/cli/Utils.py
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
from __future__ import print_function
import sys
from texttable import *
http://git-wip-us.apache.org/repos/asf/stratos/blob/90bbb374/components/org.apache.stratos.python.cli/src/main/python/cli/__init__.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/__init__.py b/components/org.apache.stratos.python.cli/src/main/python/cli/__init__.py
index e69de29..60d550d 100644
--- a/components/org.apache.stratos.python.cli/src/main/python/cli/__init__.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/cli/__init__.py
@@ -0,0 +1,17 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/90bbb374/components/org.apache.stratos.python.cli/src/main/python/cli/exceptions/AuthenticationError.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/exceptions/AuthenticationError.py b/components/org.apache.stratos.python.cli/src/main/python/cli/exceptions/AuthenticationError.py
index d0e1089..23fe468 100644
--- a/components/org.apache.stratos.python.cli/src/main/python/cli/exceptions/AuthenticationError.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/cli/exceptions/AuthenticationError.py
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
class AuthenticationError(Exception):
def __init__(self):
pass
http://git-wip-us.apache.org/repos/asf/stratos/blob/90bbb374/components/org.apache.stratos.python.cli/src/main/python/cli/exceptions/__init__.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/exceptions/__init__.py b/components/org.apache.stratos.python.cli/src/main/python/cli/exceptions/__init__.py
index f80b5be..60d550d 100644
--- a/components/org.apache.stratos.python.cli/src/main/python/cli/exceptions/__init__.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/cli/exceptions/__init__.py
@@ -1 +1,17 @@
-__author__ = 'agentmilindu'
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/90bbb374/components/org.apache.stratos.python.cli/src/main/python/setup.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/setup.py b/components/org.apache.stratos.python.cli/src/main/python/setup.py
index 1c390e2..f8fdccf 100644
--- a/components/org.apache.stratos.python.cli/src/main/python/setup.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/setup.py
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
import os
from setuptools import setup
http://git-wip-us.apache.org/repos/asf/stratos/blob/90bbb374/components/org.apache.stratos.python.cli/src/main/python/tests/__init__.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/tests/__init__.py b/components/org.apache.stratos.python.cli/src/main/python/tests/__init__.py
index e69de29..60d550d 100644
--- a/components/org.apache.stratos.python.cli/src/main/python/tests/__init__.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/tests/__init__.py
@@ -0,0 +1,17 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/90bbb374/components/org.apache.stratos.python.cli/src/main/python/tests/test_print.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/tests/test_print.py b/components/org.apache.stratos.python.cli/src/main/python/tests/test_print.py
index 72a1d70..8d0b5aa 100644
--- a/components/org.apache.stratos.python.cli/src/main/python/tests/test_print.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/tests/test_print.py
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
import sys
import unittest
from cli import Utils
http://git-wip-us.apache.org/repos/asf/stratos/blob/90bbb374/components/org.apache.stratos.python.cli/src/main/python/tests/test_printable_tree_print.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/tests/test_printable_tree_print.py b/components/org.apache.stratos.python.cli/src/main/python/tests/test_printable_tree_print.py
index 33ef5ce..2a38603 100644
--- a/components/org.apache.stratos.python.cli/src/main/python/tests/test_printable_tree_print.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/tests/test_printable_tree_print.py
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
import sys
from cli import Utils