murano-dashboard/muranodashboard/views.py
Kirill Zaitsev f847c50466 Enable hacking/flake8 rules
This commit enables and fixes previously disabled E and F rules:

* E111 indentation is not a multiple of four
* E113 unexpected indentation
* E265 block comment should start with '# '
* H236 Python 3.x incompatible __metaclass__, use six.add_metaclass()
* H238 old style class declaration, use new style (inherit from `object`)
* H405 multi line docstring summary not separated with an empty line
* H701 Empty localization string

Change-Id: Ie0af0d450f81cb5bf274192e6fdce3e41ccb7f88
Closes-Bug: #1478002
2015-07-29 23:58:07 +00:00

20 lines
718 B
Python

# Copyright (c) 2013 Mirantis, 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 horizon
def get_user_home(user):
return horizon.get_dashboard('murano').get_absolute_url()