diff --git a/.gitignore b/.gitignore index e625780..a86e1e4 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,4 @@ ChangeLog *~ .*.swp .*sw? +.idea diff --git a/vitrageclient/__init__.py b/vitrageclient/__init__.py index 0055612..e9ff28d 100644 --- a/vitrageclient/__init__.py +++ b/vitrageclient/__init__.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # 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/vitrageclient/client.py b/vitrageclient/client.py new file mode 100644 index 0000000..d5bcf39 --- /dev/null +++ b/vitrageclient/client.py @@ -0,0 +1,15 @@ +# 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. + + +class Client(object): + pass diff --git a/vitrageclient/exc.py b/vitrageclient/exc.py new file mode 100644 index 0000000..7125090 --- /dev/null +++ b/vitrageclient/exc.py @@ -0,0 +1,21 @@ +# 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. + + +class VitrageBaseException(Exception): + """An error occurred.""" + def __init__(self, message=None, *args, **kwargs): + super(BaseException, self).__init__(*args, **kwargs) + self.message = message + + def __str__(self): + return self.message or self.__class__.__doc__ diff --git a/vitrageclient/shell.py b/vitrageclient/shell.py new file mode 100644 index 0000000..12055bf --- /dev/null +++ b/vitrageclient/shell.py @@ -0,0 +1,15 @@ +# 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. + + +class VitrageShell(object): + pass diff --git a/vitrageclient/tests/base.py b/vitrageclient/tests/base.py index 1c30cdb..b0b3d14 100644 --- a/vitrageclient/tests/base.py +++ b/vitrageclient/tests/base.py @@ -1,7 +1,3 @@ -# -*- coding: utf-8 -*- - -# Copyright 2010-2011 OpenStack Foundation -# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # 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/vitrageclient/tests/test_vitrageclient.py b/vitrageclient/tests/test_vitrageclient.py index 45ce008..3a15319 100644 --- a/vitrageclient/tests/test_vitrageclient.py +++ b/vitrageclient/tests/test_vitrageclient.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # 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/vitrageclient/v1_0/__init__.py b/vitrageclient/v1_0/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/vitrageclient/v1_0/client.py b/vitrageclient/v1_0/client.py new file mode 100644 index 0000000..d5bcf39 --- /dev/null +++ b/vitrageclient/v1_0/client.py @@ -0,0 +1,15 @@ +# 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. + + +class Client(object): + pass