Răsfoiți Sursa

docs: add license

salixleaf 7 ani în urmă
părinte
comite
fc2c94b3d3
60 a modificat fișierele cu 900 adăugiri și 0 ștergeri
  1. 15 0
      rrd/__init__.py
  2. 15 0
      rrd/config.py
  3. 15 0
      rrd/consts.py
  4. 15 0
      rrd/corelib/__init__.py
  5. 15 0
      rrd/model/endpoint.py
  6. 15 0
      rrd/model/graph.py
  7. 15 0
      rrd/model/group.py
  8. 15 0
      rrd/model/portal/action.py
  9. 15 0
      rrd/model/portal/alarm.py
  10. 15 0
      rrd/model/portal/alert_link.py
  11. 15 0
      rrd/model/portal/bean.py
  12. 15 0
      rrd/model/portal/cluster.py
  13. 15 0
      rrd/model/portal/expression.py
  14. 15 0
      rrd/model/portal/group_host.py
  15. 15 0
      rrd/model/portal/grp_tpl.py
  16. 15 0
      rrd/model/portal/host.py
  17. 15 0
      rrd/model/portal/host_group.py
  18. 15 0
      rrd/model/portal/nodata.py
  19. 15 0
      rrd/model/portal/plugin_dir.py
  20. 15 0
      rrd/model/portal/strategy.py
  21. 15 0
      rrd/model/portal/template.py
  22. 15 0
      rrd/model/screen.py
  23. 15 0
      rrd/model/team.py
  24. 15 0
      rrd/model/tmpgraph.py
  25. 15 0
      rrd/model/user.py
  26. 15 0
      rrd/service/group_service.py
  27. 15 0
      rrd/store.py
  28. 15 0
      rrd/utils/__init__.py
  29. 15 0
      rrd/utils/empty.py
  30. 15 0
      rrd/utils/format.py
  31. 15 0
      rrd/utils/graph_urls.py
  32. 15 0
      rrd/utils/logger.py
  33. 15 0
      rrd/utils/params.py
  34. 15 0
      rrd/utils/rrdgraph.py
  35. 15 0
      rrd/view/__init__.py
  36. 15 0
      rrd/view/auth/auth.py
  37. 15 0
      rrd/view/dashboard/__init__.py
  38. 15 0
      rrd/view/dashboard/chart.py
  39. 15 0
      rrd/view/dashboard/screen.py
  40. 15 0
      rrd/view/index.py
  41. 15 0
      rrd/view/portal/__init__.py
  42. 15 0
      rrd/view/portal/alarm.py
  43. 15 0
      rrd/view/portal/alert_link.py
  44. 15 0
      rrd/view/portal/api.py
  45. 15 0
      rrd/view/portal/cluster.py
  46. 15 0
      rrd/view/portal/expression.py
  47. 15 0
      rrd/view/portal/group.py
  48. 15 0
      rrd/view/portal/home.py
  49. 15 0
      rrd/view/portal/host.py
  50. 15 0
      rrd/view/portal/nodata.py
  51. 15 0
      rrd/view/portal/plugin.py
  52. 15 0
      rrd/view/portal/strategy.py
  53. 15 0
      rrd/view/portal/template.py
  54. 15 0
      rrd/view/team/team.py
  55. 15 0
      rrd/view/user/user.py
  56. 15 0
      rrd/view/utils.py
  57. 15 0
      scripts/tr_compile.py
  58. 15 0
      scripts/tr_init.py
  59. 15 0
      scripts/tr_update.py
  60. 15 0
      wsgi.py

+ 15 - 0
rrd/__init__.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import os
 import traceback
 from flask import Flask, request

+ 15 - 0
rrd/config.py

@@ -1,4 +1,19 @@
 #-*-coding:utf8-*-
+# Copyright 2017 Xiaomi, 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.
+
+
 # app config
 import os
 LOG_LEVEL = os.environ.get("LOG_LEVEL",'DEBUG')

+ 15 - 0
rrd/consts.py

@@ -1,4 +1,19 @@
 #-*-coding:utf8-*-
+# Copyright 2017 Xiaomi, 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.
+
+
 
 RRD_CFS = ['AVERAGE', 'MAX', 'MIN', 'LAST']
 

+ 15 - 0
rrd/corelib/__init__.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import requests
 import json
 

+ 15 - 0
rrd/model/endpoint.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import json
 from rrd.config import API_ADDR
 from rrd import corelib

+ 15 - 0
rrd/model/graph.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import json
 from rrd.config import API_ADDR
 from rrd import corelib

+ 15 - 0
rrd/model/group.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import json
 from rrd import corelib
 from rrd import config

+ 15 - 0
rrd/model/portal/action.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from .bean import Bean
 

+ 15 - 0
rrd/model/portal/alarm.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 from .bean import Bean
 from rrd.store import alarm_db
 

+ 15 - 0
rrd/model/portal/alert_link.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 from .bean import Bean
 
 class AlertLink(Bean):

+ 15 - 0
rrd/model/portal/bean.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from rrd.store import db
 

+ 15 - 0
rrd/model/portal/cluster.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from .bean import Bean
 

+ 15 - 0
rrd/model/portal/expression.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from .bean import Bean
 from rrd.config import MAINTAINERS

+ 15 - 0
rrd/model/portal/group_host.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from .bean import Bean
 from rrd.store import db

+ 15 - 0
rrd/model/portal/grp_tpl.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from .bean import Bean
 from .template import Template

+ 15 - 0
rrd/model/portal/host.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from .bean import Bean
 from rrd.store import db

+ 15 - 0
rrd/model/portal/host_group.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from .bean import Bean
 from rrd.config import MAINTAINERS

+ 15 - 0
rrd/model/portal/nodata.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from .bean import Bean
 from rrd.config import MAINTAINERS

+ 15 - 0
rrd/model/portal/plugin_dir.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from .bean import Bean
 

+ 15 - 0
rrd/model/portal/strategy.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from .bean import Bean
 

+ 15 - 0
rrd/model/portal/template.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from .bean import Bean
 from rrd.config import MAINTAINERS

+ 15 - 0
rrd/model/screen.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import json
 from rrd.config import API_ADDR
 from rrd import corelib

+ 15 - 0
rrd/model/team.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import json
 from rrd import corelib
 from rrd import config

+ 15 - 0
rrd/model/tmpgraph.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import json
 from rrd.config import API_ADDR
 from rrd import corelib

+ 15 - 0
rrd/model/user.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import json
 from rrd import corelib
 from rrd import config

+ 15 - 0
rrd/service/group_service.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from rrd.store import db
 from rrd.model.portal.host_group import HostGroup

+ 15 - 0
rrd/store.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import MySQLdb
 from rrd import config
 from rrd.utils.logger import logging

+ 15 - 0
rrd/utils/__init__.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import random
 import string
 

+ 15 - 0
rrd/utils/empty.py

@@ -1,4 +1,19 @@
 # encoding: utf-8
+# Copyright 2017 Xiaomi, 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.
+
+
 """
 empty.py
 from douban code, cool

+ 15 - 0
rrd/utils/format.py

@@ -1,4 +1,19 @@
 #!/bin/env python
+# Copyright 2017 Xiaomi, 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.
+
+
 
 import re
 

+ 15 - 0
rrd/utils/graph_urls.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import json
 import copy
 import re

+ 15 - 0
rrd/utils/logger.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 from rrd import config
 import logging
 logging.basicConfig(

+ 15 - 0
rrd/utils/params.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 def required_chk(p):
     if not p:
         return ''

+ 15 - 0
rrd/utils/rrdgraph.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 from rrd.config import API_ADDR
 import json
 from rrd import corelib

+ 15 - 0
rrd/view/__init__.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import datetime
 import time
 from flask import g, session, request, redirect

+ 15 - 0
rrd/view/auth/auth.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 from flask import request, g, abort, render_template, redirect
 from flask.ext.babel import refresh
 import requests

+ 15 - 0
rrd/view/dashboard/__init__.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import time
 from flask import request, g, session, abort, render_template
 

+ 15 - 0
rrd/view/dashboard/chart.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import urllib
 import json
 from flask import request, g, abort, render_template

+ 15 - 0
rrd/view/dashboard/screen.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import json
 import copy
 import json

+ 15 - 0
rrd/view/index.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import json
 import re
 from flask import request, abort, g, render_template

+ 15 - 0
rrd/view/portal/__init__.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 
 __all__ = [

+ 15 - 0
rrd/view/portal/alarm.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 from flask import jsonify, render_template, request, g, abort
 from rrd import app
 from rrd.model.portal.alarm import Event, EventCase

+ 15 - 0
rrd/view/portal/alert_link.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from rrd import app
 from flask import render_template, request

+ 15 - 0
rrd/view/portal/api.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from rrd import app
 from flask import request, jsonify, render_template

+ 15 - 0
rrd/view/portal/cluster.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from flask import jsonify, render_template, request, g
 from flask.ext.babel import gettext

+ 15 - 0
rrd/view/portal/expression.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from rrd import app
 from flask import request, g, render_template, jsonify

+ 15 - 0
rrd/view/portal/group.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 
 from rrd import app

+ 15 - 0
rrd/view/portal/home.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 
 from rrd import app

+ 15 - 0
rrd/view/portal/host.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from flask import jsonify, request, render_template, g, make_response
 from rrd import app

+ 15 - 0
rrd/view/portal/nodata.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'niean'
 from rrd import app
 from flask import request, g, render_template, jsonify

+ 15 - 0
rrd/view/portal/plugin.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from rrd import app
 from flask import jsonify, render_template, request, g

+ 15 - 0
rrd/view/portal/strategy.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from rrd import app
 from flask import request, jsonify

+ 15 - 0
rrd/view/portal/template.py

@@ -1,4 +1,19 @@
 # -*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 __author__ = 'Ulric Qin'
 from rrd import app
 from flask import g, render_template, request, jsonify

+ 15 - 0
rrd/view/team/team.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import json
 from flask import request, g, abort, render_template
 from rrd import app

+ 15 - 0
rrd/view/user/user.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import json
 from flask import request, g, abort, render_template
 from rrd import app

+ 15 - 0
rrd/view/utils.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import json
 import requests
 from flask import g, redirect, session, abort, request

+ 15 - 0
scripts/tr_compile.py

@@ -1,4 +1,19 @@
 #!env/bin/python
+# Copyright 2017 Xiaomi, 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.
+
+
 import os
 import sys
 if sys.platform == 'win32':

+ 15 - 0
scripts/tr_init.py

@@ -1,4 +1,19 @@
 #!env/bin/python
+# Copyright 2017 Xiaomi, 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.
+
+
 import os
 import sys
 if sys.platform == 'win32':

+ 15 - 0
scripts/tr_update.py

@@ -1,4 +1,19 @@
 #!env/bin/python
+# Copyright 2017 Xiaomi, 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.
+
+
 import os
 import sys
 if sys.platform == 'win32':

+ 15 - 0
wsgi.py

@@ -1,4 +1,19 @@
 #-*- coding:utf-8 -*-
+# Copyright 2017 Xiaomi, 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.
+
+
 import os
 base_dir = os.path.dirname(os.path.abspath(__file__))
 activate_this = '%s/env/bin/activate_this.py' % base_dir