summaryrefslogtreecommitdiffstats
path: root/dashboard/backend/dovetail/api/__init__.py
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2017-06-25 22:36:01 -0400
committerMatthewLi <matthew.lijun@huawei.com>2017-06-25 22:36:01 -0400
commitcbf8b9e32d57f30fed5a6b1bba971fd530e65520 (patch)
treedeead845fc81e5092714ebd03c148b6daef296bd /dashboard/backend/dovetail/api/__init__.py
parent2a4e39ee4abdbbadf1285a75fb5540a09432b5f4 (diff)
delete unused dashboard backend packages
JIRA: DOVETAIL-452 since testapi/mongoDB/openstack 3rd paty dahsboard packages are used for dovetail now in releng repo. the out-dated mysql-based dashboard backend packages are deleted Change-Id: I304c6c40b47e2fac513dd2de873644b749c3275d Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'dashboard/backend/dovetail/api/__init__.py')
-rwxr-xr-xdashboard/backend/dovetail/api/__init__.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/dashboard/backend/dovetail/api/__init__.py b/dashboard/backend/dovetail/api/__init__.py
deleted file mode 100755
index f9c4e5a2..00000000
--- a/dashboard/backend/dovetail/api/__init__.py
+++ /dev/null
@@ -1,29 +0,0 @@
-##############################################################################
-# Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
-#
-# 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 datetime
-import logging
-
-from flask import Flask
-
-from dovetail.utils import util
-
-logging.info('flask app: begin to init')
-
-app = Flask(__name__)
-app.debug = True
-logging.info('flask app config:%s', app.config)
-
-app.config['REMEMBER_COOKIE_DURATION'] = (
- datetime.timedelta(
- seconds=util.parse_time_interval('2h')
- )
-)
-
-logging.info('flask app: finish init')