diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-06-02 15:04:41 +0800 |
---|---|---|
committer | Serena Feng <feng.xiaowei@zte.com.cn> | 2016-06-02 07:10:37 +0000 |
commit | 8c8212b4487a2ba6005743ffbaaa2e6d31e08c75 (patch) | |
tree | fcbbda87983716737ae4af713a1348fa7e92b73e /result_collection_api | |
parent | 5a70780d9bb105f8aef312d67cf1ec2e3751f0c3 (diff) |
add copyright to files in testAPI
add copyright head to new created files
JIRA: FUNCTEST-289
Change-Id: Idbedcf6d63156570dfa4b85dd8125b3882251765
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'result_collection_api')
28 files changed, 234 insertions, 47 deletions
diff --git a/result_collection_api/opnfv_testapi/__init__.py b/result_collection_api/opnfv_testapi/__init__.py index e69de29..363bc38 100644 --- a/result_collection_api/opnfv_testapi/__init__.py +++ b/result_collection_api/opnfv_testapi/__init__.py @@ -0,0 +1,8 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## diff --git a/result_collection_api/opnfv_testapi/cmd/__init__.py b/result_collection_api/opnfv_testapi/cmd/__init__.py index e69de29..363bc38 100644 --- a/result_collection_api/opnfv_testapi/cmd/__init__.py +++ b/result_collection_api/opnfv_testapi/cmd/__init__.py @@ -0,0 +1,8 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## diff --git a/result_collection_api/opnfv_testapi/resources/dashboard_handlers.py b/result_collection_api/opnfv_testapi/resources/dashboard_handlers.py index 82bf8d2..84e7bc1 100644 --- a/result_collection_api/opnfv_testapi/resources/dashboard_handlers.py +++ b/result_collection_api/opnfv_testapi/resources/dashboard_handlers.py @@ -1,3 +1,12 @@ +############################################################################## +# Copyright (c) 2015 Orange +# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + from tornado.web import HTTPError from opnfv_testapi.common.constants import HTTP_NOT_FOUND diff --git a/result_collection_api/opnfv_testapi/resources/pod_handlers.py b/result_collection_api/opnfv_testapi/resources/pod_handlers.py index d9e6686..df4112f 100644 --- a/result_collection_api/opnfv_testapi/resources/pod_handlers.py +++ b/result_collection_api/opnfv_testapi/resources/pod_handlers.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2015 Orange +# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## from opnfv_testapi.tornado_swagger import swagger from handlers import GenericApiHandler from pod_models import Pod diff --git a/result_collection_api/opnfv_testapi/resources/pod_models.py b/result_collection_api/opnfv_testapi/resources/pod_models.py index 3e6f5a8..7231806 100644 --- a/result_collection_api/opnfv_testapi/resources/pod_models.py +++ b/result_collection_api/opnfv_testapi/resources/pod_models.py @@ -1,7 +1,13 @@ +############################################################################## +# Copyright (c) 2015 Orange +# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## from opnfv_testapi.tornado_swagger import swagger -__author__ = '__serena__' - # name: name of the POD e.g. zte-1 # mode: metal or virtual # details: any detail diff --git a/result_collection_api/opnfv_testapi/resources/project_handlers.py b/result_collection_api/opnfv_testapi/resources/project_handlers.py index 30fb402..171ab76 100644 --- a/result_collection_api/opnfv_testapi/resources/project_handlers.py +++ b/result_collection_api/opnfv_testapi/resources/project_handlers.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2015 Orange +# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## from opnfv_testapi.tornado_swagger import swagger from handlers import GenericApiHandler from opnfv_testapi.common.constants import HTTP_FORBIDDEN diff --git a/result_collection_api/opnfv_testapi/resources/project_models.py b/result_collection_api/opnfv_testapi/resources/project_models.py index 1014254..f70630c 100644 --- a/result_collection_api/opnfv_testapi/resources/project_models.py +++ b/result_collection_api/opnfv_testapi/resources/project_models.py @@ -1,7 +1,13 @@ +############################################################################## +# Copyright (c) 2015 Orange +# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## from opnfv_testapi.tornado_swagger import swagger -__author__ = '__serena__' - @swagger.model() class ProjectCreateRequest(object): diff --git a/result_collection_api/opnfv_testapi/resources/result_handlers.py b/result_collection_api/opnfv_testapi/resources/result_handlers.py index 9358c71..4955472 100644 --- a/result_collection_api/opnfv_testapi/resources/result_handlers.py +++ b/result_collection_api/opnfv_testapi/resources/result_handlers.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2015 Orange +# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## from datetime import datetime, timedelta from bson.objectid import ObjectId diff --git a/result_collection_api/opnfv_testapi/resources/result_models.py b/result_collection_api/opnfv_testapi/resources/result_models.py index b3bb95b..fb6a809 100644 --- a/result_collection_api/opnfv_testapi/resources/result_models.py +++ b/result_collection_api/opnfv_testapi/resources/result_models.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2015 Orange +# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## from opnfv_testapi.tornado_swagger import swagger diff --git a/result_collection_api/opnfv_testapi/resources/testcase_handlers.py b/result_collection_api/opnfv_testapi/resources/testcase_handlers.py index 4b825f2..b4f9db9 100644 --- a/result_collection_api/opnfv_testapi/resources/testcase_handlers.py +++ b/result_collection_api/opnfv_testapi/resources/testcase_handlers.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2015 Orange +# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## from opnfv_testapi.common.constants import HTTP_FORBIDDEN from opnfv_testapi.resources.handlers import GenericApiHandler from opnfv_testapi.resources.testcase_models import Testcase diff --git a/result_collection_api/opnfv_testapi/resources/testcase_models.py b/result_collection_api/opnfv_testapi/resources/testcase_models.py index e3718a6..c9dce60 100644 --- a/result_collection_api/opnfv_testapi/resources/testcase_models.py +++ b/result_collection_api/opnfv_testapi/resources/testcase_models.py @@ -1,7 +1,13 @@ +############################################################################## +# Copyright (c) 2015 Orange +# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## from opnfv_testapi.tornado_swagger import swagger -__author__ = '__serena__' - @swagger.model() class TestcaseCreateRequest(object): diff --git a/result_collection_api/opnfv_testapi/router/__init__.py b/result_collection_api/opnfv_testapi/router/__init__.py index 3ed9fd0..3fc79f1 100644 --- a/result_collection_api/opnfv_testapi/router/__init__.py +++ b/result_collection_api/opnfv_testapi/router/__init__.py @@ -1 +1,9 @@ -__author__ = 'root' +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +__author__ = 'serena' diff --git a/result_collection_api/opnfv_testapi/router/url_mappings.py b/result_collection_api/opnfv_testapi/router/url_mappings.py index c299ada..874754b 100644 --- a/result_collection_api/opnfv_testapi/router/url_mappings.py +++ b/result_collection_api/opnfv_testapi/router/url_mappings.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2015 Orange +# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## from opnfv_testapi.resources.handlers import VersionHandler from opnfv_testapi.resources.testcase_handlers import TestcaseCLHandler, \ TestcaseGURHandler diff --git a/result_collection_api/opnfv_testapi/tests/unit/__init__.py b/result_collection_api/opnfv_testapi/tests/unit/__init__.py index 3ed9fd0..3fc79f1 100644 --- a/result_collection_api/opnfv_testapi/tests/unit/__init__.py +++ b/result_collection_api/opnfv_testapi/tests/unit/__init__.py @@ -1 +1,9 @@ -__author__ = 'root' +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +__author__ = 'serena' diff --git a/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py b/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py index bebb9e8..e556968 100644 --- a/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py +++ b/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py @@ -1,10 +1,15 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## from bson.objectid import ObjectId from concurrent.futures import ThreadPoolExecutor -__author__ = 'serena' - - def thread_execute(method, *args, **kwargs): with ThreadPoolExecutor(max_workers=2) as executor: result = executor.submit(method, *args, **kwargs) diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_base.py b/result_collection_api/opnfv_testapi/tests/unit/test_base.py index 01c43f0..ff1a193 100644 --- a/result_collection_api/opnfv_testapi/tests/unit/test_base.py +++ b/result_collection_api/opnfv_testapi/tests/unit/test_base.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## import json from tornado.web import Application diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_dashboard.py b/result_collection_api/opnfv_testapi/tests/unit/test_dashboard.py index 16a3140..8f729c0 100644 --- a/result_collection_api/opnfv_testapi/tests/unit/test_dashboard.py +++ b/result_collection_api/opnfv_testapi/tests/unit/test_dashboard.py @@ -1,10 +1,16 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## import unittest from test_result import TestResultBase from opnfv_testapi.common.constants import HTTP_NOT_FOUND, HTTP_OK -__author__ = '__serena__' - class TestDashboardBase(TestResultBase): def setUp(self): diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_fake_pymongo.py b/result_collection_api/opnfv_testapi/tests/unit/test_fake_pymongo.py index 6920fca..9bc311c 100644 --- a/result_collection_api/opnfv_testapi/tests/unit/test_fake_pymongo.py +++ b/result_collection_api/opnfv_testapi/tests/unit/test_fake_pymongo.py @@ -1,4 +1,13 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## import unittest + from tornado.web import Application from tornado import gen from tornado.testing import AsyncHTTPTestCase, gen_test diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_pod.py b/result_collection_api/opnfv_testapi/tests/unit/test_pod.py index 2f5d84d..a1184d5 100644 --- a/result_collection_api/opnfv_testapi/tests/unit/test_pod.py +++ b/result_collection_api/opnfv_testapi/tests/unit/test_pod.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## import unittest from test_base import TestBase diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_project.py b/result_collection_api/opnfv_testapi/tests/unit/test_project.py index 1b4af91..d473060 100644 --- a/result_collection_api/opnfv_testapi/tests/unit/test_project.py +++ b/result_collection_api/opnfv_testapi/tests/unit/test_project.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## import unittest from test_base import TestBase diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_result.py b/result_collection_api/opnfv_testapi/tests/unit/test_result.py index 23a745f..7863fe7 100644 --- a/result_collection_api/opnfv_testapi/tests/unit/test_result.py +++ b/result_collection_api/opnfv_testapi/tests/unit/test_result.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## import unittest import copy @@ -10,8 +18,6 @@ from opnfv_testapi.resources.result_models import ResultCreateRequest, \ from opnfv_testapi.common.constants import HTTP_OK, HTTP_BAD_REQUEST, \ HTTP_NOT_FOUND -__author__ = '__serena__' - class Details(object): def __init__(self, timestart=None, duration=None, status=None): diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_testcase.py b/result_collection_api/opnfv_testapi/tests/unit/test_testcase.py index dc20821..a145c00 100644 --- a/result_collection_api/opnfv_testapi/tests/unit/test_testcase.py +++ b/result_collection_api/opnfv_testapi/tests/unit/test_testcase.py @@ -1,3 +1,11 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## import unittest from test_base import TestBase @@ -8,9 +16,6 @@ from opnfv_testapi.common.constants import HTTP_OK, HTTP_BAD_REQUEST, \ HTTP_FORBIDDEN, HTTP_NOT_FOUND -__author__ = '__serena__' - - class TestCaseBase(TestBase): def setUp(self): super(TestCaseBase, self).setUp() diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_version.py b/result_collection_api/opnfv_testapi/tests/unit/test_version.py index 626b290..907812b 100644 --- a/result_collection_api/opnfv_testapi/tests/unit/test_version.py +++ b/result_collection_api/opnfv_testapi/tests/unit/test_version.py @@ -1,10 +1,16 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## import unittest from test_base import TestBase from opnfv_testapi.resources.models import Versions -__author__ = 'serena' - class TestVersionbBase(TestBase): def setUp(self): diff --git a/result_collection_api/opnfv_testapi/tornado_swagger/__init__.py b/result_collection_api/opnfv_testapi/tornado_swagger/__init__.py index 031a4a2..363bc38 100644 --- a/result_collection_api/opnfv_testapi/tornado_swagger/__init__.py +++ b/result_collection_api/opnfv_testapi/tornado_swagger/__init__.py @@ -1,4 +1,8 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -__author__ = 'serena' +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## diff --git a/result_collection_api/opnfv_testapi/tornado_swagger/handlers.py b/result_collection_api/opnfv_testapi/tornado_swagger/handlers.py index 8bcb966..2154b46 100644 --- a/result_collection_api/opnfv_testapi/tornado_swagger/handlers.py +++ b/result_collection_api/opnfv_testapi/tornado_swagger/handlers.py @@ -1,13 +1,17 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## from tornado.web import URLSpec, StaticFileHandler from settings import default_settings, \ SWAGGER_API_DOCS, SWAGGER_API_LIST, SWAGGER_API_SPEC from views import SwaggerUIHandler, SwaggerResourcesHandler, SwaggerApiHandler -__author__ = 'serena' - def swagger_handlers(): prefix = default_settings.get('swagger_prefix', '/swagger') diff --git a/result_collection_api/opnfv_testapi/tornado_swagger/settings.py b/result_collection_api/opnfv_testapi/tornado_swagger/settings.py index 8f43c4a..001d558 100644 --- a/result_collection_api/opnfv_testapi/tornado_swagger/settings.py +++ b/result_collection_api/opnfv_testapi/tornado_swagger/settings.py @@ -1,15 +1,17 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## import os.path -__author__ = 'serena' - SWAGGER_VERSION = '1.2' - SWAGGER_API_DOCS = 'swagger-api-docs' SWAGGER_API_LIST = 'swagger-api-list' SWAGGER_API_SPEC = 'swagger-api-spec' - STATIC_PATH = os.path.join(os.path.dirname(os.path.normpath(__file__)), 'static') diff --git a/result_collection_api/opnfv_testapi/tornado_swagger/swagger.py b/result_collection_api/opnfv_testapi/tornado_swagger/swagger.py index b290e05..3d21ede 100644 --- a/result_collection_api/opnfv_testapi/tornado_swagger/swagger.py +++ b/result_collection_api/opnfv_testapi/tornado_swagger/swagger.py @@ -1,16 +1,21 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## import inspect from functools import wraps -import epydoc.markup from HTMLParser import HTMLParser + +import epydoc.markup import tornado.web + from settings import default_settings, models from handlers import swagger_handlers -__author__ = 'serena' - class EpytextParser(HTMLParser): a_text = False diff --git a/result_collection_api/opnfv_testapi/tornado_swagger/views.py b/result_collection_api/opnfv_testapi/tornado_swagger/views.py index 7624023..7190c67 100644 --- a/result_collection_api/opnfv_testapi/tornado_swagger/views.py +++ b/result_collection_api/opnfv_testapi/tornado_swagger/views.py @@ -1,16 +1,20 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +############################################################################## +# Copyright (c) 2016 ZTE Corporation +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## import urlparse import json import inspect + import tornado.web import tornado.template -from settings import SWAGGER_VERSION, \ - SWAGGER_API_LIST, \ - SWAGGER_API_SPEC -from settings import models -__author__ = 'serena' +from settings import SWAGGER_VERSION, SWAGGER_API_LIST, SWAGGER_API_SPEC +from settings import models def json_dumps(obj, pretty=False): |