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:
parent
e212fd4742
commit
3050adf16c
@ -12,9 +12,9 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from mistralclient.api.base import APIException
|
from mistralclient.api import base
|
||||||
from openstack_dashboard import exceptions
|
from openstack_dashboard import exceptions
|
||||||
|
|
||||||
NOT_FOUND = exceptions.NOT_FOUND
|
NOT_FOUND = exceptions.NOT_FOUND
|
||||||
RECOVERABLE = exceptions.RECOVERABLE + (APIException,)
|
RECOVERABLE = exceptions.RECOVERABLE + (base.APIException,)
|
||||||
UNAUTHORIZED = exceptions.UNAUTHORIZED
|
UNAUTHORIZED = exceptions.UNAUTHORIZED
|
||||||
|
@ -25,11 +25,11 @@ from horizon import tables
|
|||||||
|
|
||||||
from mistraldashboard import api
|
from mistraldashboard import api
|
||||||
from mistraldashboard.workflows import forms as mistral_forms
|
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):
|
class IndexView(tables.DataTableView):
|
||||||
table_class = WorkflowsTable
|
table_class = workflows_tables.WorkflowsTable
|
||||||
template_name = 'mistral/workflows/index.html'
|
template_name = 'mistral/workflows/index.html'
|
||||||
|
|
||||||
def get_data(self):
|
def get_data(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user