Clean imports in code

In some part in the code we import objects. In the Openstack style
guidelines they recommend to import only modules.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I251a19736cf24a7ace40ea10371452f36c0b49b2
This commit is contained in:
Nguyen Hung Phuong 2016-09-15 13:50:35 +07:00
parent e212fd4742
commit 3050adf16c
2 changed files with 4 additions and 4 deletions

View File

@ -12,9 +12,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from mistralclient.api.base import APIException
from mistralclient.api import base
from openstack_dashboard import exceptions
NOT_FOUND = exceptions.NOT_FOUND
RECOVERABLE = exceptions.RECOVERABLE + (APIException,)
RECOVERABLE = exceptions.RECOVERABLE + (base.APIException,)
UNAUTHORIZED = exceptions.UNAUTHORIZED

View File

@ -25,11 +25,11 @@ from horizon import tables
from mistraldashboard import api
from mistraldashboard.workflows import forms as mistral_forms
from mistraldashboard.workflows.tables import WorkflowsTable
from mistraldashboard.workflows import tables as workflows_tables
class IndexView(tables.DataTableView):
table_class = WorkflowsTable
table_class = workflows_tables.WorkflowsTable
template_name = 'mistral/workflows/index.html'
def get_data(self):