Rename package 'workbook' to 'lang'

* The previous name of the package is not relevant anymore, it was
  chosen for reasons that don't make sense anymore. A name of the
  package should reflect that it's about the workflow language.

Change-Id: I7e05ba97abf0aa5db4e19d9d72b4ea0d52e328fb
This commit is contained in:
Renat Akhmerov 2017-03-03 19:24:18 +07:00
parent 9571c5489b
commit 5c140a2fce
45 changed files with 62 additions and 62 deletions

View File

@ -28,10 +28,10 @@ from mistral.api.hooks import content_type as ct_hook
from mistral import context
from mistral.db.v2 import api as db_api
from mistral import exceptions as exc
from mistral.lang import parser as spec_parser
from mistral.services import actions
from mistral.utils import filter_utils
from mistral.utils import rest_utils
from mistral.workbook import parser as spec_parser
LOG = logging.getLogger(__name__)

View File

@ -28,9 +28,9 @@ from mistral import context
from mistral.db.v2 import api as db_api
from mistral.engine.rpc_backend import rpc
from mistral import exceptions as exc
from mistral.lang import parser as spec_parser
from mistral.utils import filter_utils
from mistral.utils import rest_utils
from mistral.workbook import parser as spec_parser
from mistral.workflow import data_flow
from mistral.workflow import states

View File

@ -27,10 +27,10 @@ from mistral.api.controllers.v2 import validation
from mistral.api.hooks import content_type as ct_hook
from mistral import context
from mistral.db.v2 import api as db_api
from mistral.lang import parser as spec_parser
from mistral.services import workbooks
from mistral.utils import filter_utils
from mistral.utils import rest_utils
from mistral.workbook import parser as spec_parser
LOG = logging.getLogger(__name__)

View File

@ -31,10 +31,10 @@ from mistral.api.hooks import content_type as ct_hook
from mistral import context
from mistral.db.v2 import api as db_api
from mistral import exceptions as exc
from mistral.lang import parser as spec_parser
from mistral.services import workflows
from mistral.utils import filter_utils
from mistral.utils import rest_utils
from mistral.workbook import parser as spec_parser
LOG = logging.getLogger(__name__)

View File

@ -21,7 +21,7 @@ from mistral.db.v2.sqlalchemy import models
from mistral.engine import actions
from mistral.engine import task_handler
from mistral import exceptions as exc
from mistral.workbook import parser as spec_parser
from mistral.lang import parser as spec_parser
LOG = logging.getLogger(__name__)

View File

@ -25,11 +25,11 @@ from mistral.engine import utils as e_utils
from mistral.engine import workflow_handler as wf_handler
from mistral import exceptions as exc
from mistral import expressions as expr
from mistral.lang import parser as spec_parser
from mistral.services import action_manager as a_m
from mistral.services import security
from mistral import utils
from mistral.utils import wf_trace
from mistral.workbook import parser as spec_parser
from mistral.workflow import states
from mistral.workflow import utils as wf_utils

View File

@ -25,8 +25,8 @@ from mistral.engine import action_queue
from mistral.engine import tasks
from mistral.engine import workflow_handler as wf_handler
from mistral import exceptions as exc
from mistral.lang import parser as spec_parser
from mistral.services import scheduler
from mistral.workbook import parser as spec_parser
from mistral.workflow import base as wf_base
from mistral.workflow import commands as wf_cmds
from mistral.workflow import states

View File

@ -25,12 +25,12 @@ from mistral.engine import dispatcher
from mistral.engine.rpc_backend import rpc
from mistral.engine import utils as eng_utils
from mistral import exceptions as exc
from mistral.lang import parser as spec_parser
from mistral.services import scheduler
from mistral.services import workflows as wf_service
from mistral import utils
from mistral.utils import merge_dicts
from mistral.utils import wf_trace
from mistral.workbook import parser as spec_parser
from mistral.workflow import base as wf_base
from mistral.workflow import commands
from mistral.workflow import data_flow

View File

@ -21,8 +21,8 @@ import six
from mistral import exceptions as exc
from mistral import expressions as expr
from mistral.lang import types
from mistral import utils
from mistral.workbook import types
CMD_PTRN = re.compile("^[\w\.]+[^=\(\s\"]*")

View File

@ -22,11 +22,11 @@ import six
from mistral.db.v2 import api as db_api
from mistral import exceptions as exc
from mistral.workbook import base
from mistral.workbook.v2 import actions as actions_v2
from mistral.workbook.v2 import tasks as tasks_v2
from mistral.workbook.v2 import workbook as wb_v2
from mistral.workbook.v2 import workflows as wf_v2
from mistral.lang import base
from mistral.lang.v2 import actions as actions_v2
from mistral.lang.v2 import tasks as tasks_v2
from mistral.lang.v2 import workbook as wb_v2
from mistral.lang.v2 import workflows as wf_v2
V2_0 = '2.0'

View File

@ -15,9 +15,9 @@
import six
from mistral.lang import types
from mistral.lang.v2 import base
from mistral import utils
from mistral.workbook import types
from mistral.workbook.v2 import base
class ActionSpec(base.BaseSpec):

View File

@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from mistral.workbook import base
from mistral.workbook import types
from mistral.lang import base
from mistral.lang import types
class BaseSpec(base.BaseSpec):

View File

@ -13,9 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from mistral.workbook import types
from mistral.workbook.v2 import base
from mistral.workbook.v2 import retry_policy
from mistral.lang import types
from mistral.lang.v2 import base
from mistral.lang.v2 import retry_policy
RETRY_SCHEMA = retry_policy.RetrySpec.get_schema(includes=None)

View File

@ -15,8 +15,8 @@
import six
from mistral.workbook import types
from mistral.workbook.v2 import base
from mistral.lang import types
from mistral.lang.v2 import base
class RetrySpec(base.BaseSpec):

View File

@ -15,10 +15,10 @@
import six
from mistral.workbook import types
from mistral.workbook.v2 import base
from mistral.workbook.v2 import policies
from mistral.workbook.v2 import tasks
from mistral.lang import types
from mistral.lang.v2 import base
from mistral.lang.v2 import policies
from mistral.lang.v2 import tasks
direct_wf_ts = tasks.DirectWorkflowTaskSpec

View File

@ -20,10 +20,10 @@ import six
from mistral import exceptions as exc
from mistral import expressions
from mistral.lang import types
from mistral.lang.v2 import base
from mistral.lang.v2 import policies
from mistral import utils
from mistral.workbook import types
from mistral.workbook.v2 import base
from mistral.workbook.v2 import policies
_expr_ptrns = [expressions.patterns[name] for name in expressions.patterns]
WITH_ITEMS_PTRN = re.compile(

View File

@ -13,9 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from mistral.workbook.v2 import actions as act
from mistral.workbook.v2 import base
from mistral.workbook.v2 import workflows as wf
from mistral.lang.v2 import actions as act
from mistral.lang.v2 import base
from mistral.lang.v2 import workflows as wf
# We want to match any single word that isn't exactly "version"
NON_VERSION_WORD_REGEX = "^(?!version$)[\w-]+$"

View File

@ -18,11 +18,11 @@ import six
import threading
from mistral import exceptions as exc
from mistral.lang import types
from mistral.lang.v2 import base
from mistral.lang.v2 import task_defaults
from mistral.lang.v2 import tasks
from mistral import utils
from mistral.workbook import types
from mistral.workbook.v2 import base
from mistral.workbook.v2 import task_defaults
from mistral.workbook.v2 import tasks
class WorkflowSpec(base.BaseSpec):

View File

@ -16,7 +16,7 @@ import json
from mistral.db.v2 import api as db_api
from mistral import exceptions as exc
from mistral.workbook import parser as spec_parser
from mistral.lang import parser as spec_parser
def create_actions(definition, scope='private'):

View File

@ -21,8 +21,8 @@ from mistral.db.v2 import api as db_api
from mistral.engine.rpc_backend import rpc
from mistral.engine import utils as eng_utils
from mistral import exceptions as exc
from mistral.lang import parser
from mistral.services import security
from mistral.workbook import parser
def get_next_execution_time(pattern, start_time):

View File

@ -13,8 +13,8 @@
# limitations under the License.
from mistral.db.v2 import api as db_api_v2
from mistral.lang import parser as spec_parser
from mistral.services import actions
from mistral.workbook import parser as spec_parser
def create_workbook_v2(definition, scope='private'):

View File

@ -14,8 +14,8 @@
from mistral.db.v2 import api as db_api
from mistral import exceptions as exc
from mistral.lang import parser as spec_parser
from mistral import utils
from mistral.workbook import parser as spec_parser
from mistral.workflow import data_flow
from mistral.workflow import states

View File

@ -29,12 +29,12 @@ from mistral import context as auth_context
from mistral.db.sqlalchemy import base as db_sa_base
from mistral.db.sqlalchemy import sqlite_lock
from mistral.db.v2 import api as db_api
from mistral.lang import parser as spec_parser
from mistral.services import action_manager
from mistral.services import security
from mistral.tests.unit import config as test_config
from mistral.utils import inspect_utils as i_utils
from mistral import version
from mistral.workbook import parser as spec_parser
from mistral.workflow import lookup_utils
RESOURCES_PATH = 'tests/resources/'

View File

@ -21,10 +21,10 @@ from mistral.db.v2 import api as db_api
from mistral.db.v2.sqlalchemy import models
from mistral.engine import policies
from mistral import exceptions as exc
from mistral.lang import parser as spec_parser
from mistral.services import workbooks as wb_service
from mistral.services import workflows as wf_service
from mistral.tests.unit.engine import base
from mistral.workbook import parser as spec_parser
from mistral.workflow import states

View File

@ -17,9 +17,9 @@ from oslo_config import cfg
from mistral.db.v2 import api as db_api
from mistral import exceptions as exc
from mistral.lang import parser as spec_parser
from mistral.services import workbooks as wb_service
from mistral.tests.unit.engine import base
from mistral.workbook import parser as spec_parser
from mistral.workflow import data_flow
from mistral.workflow import states
from mistral.workflow import utils

View File

@ -13,10 +13,10 @@
# limitations under the License.
from mistral.db.v2 import api as db_api
from mistral.lang import parser as spec_parser
from mistral.services import workbooks as wb_service
from mistral.services import workflows as wf_service
from mistral.tests.unit import base
from mistral.workbook import parser as spec_parser
from mistral.workflow import states

View File

@ -17,9 +17,9 @@ import copy
import yaml
from mistral import exceptions as exc
from mistral.lang import parser as spec_parser
from mistral.tests.unit import base
from mistral import utils
from mistral.workbook import parser as spec_parser
class WorkflowSpecValidationTestCase(base.BaseTest):

View File

@ -15,7 +15,7 @@
import copy
from mistral.tests.unit.workbook.v2 import base
from mistral.tests.unit.lang.v2 import base
from mistral import utils

View File

@ -14,9 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from mistral.tests.unit.workbook.v2 import base as v2_base
from mistral.lang.v2 import workflows
from mistral.tests.unit.lang.v2 import base as v2_base
from mistral import utils
from mistral.workbook.v2 import workflows
class TaskSpecValidation(v2_base.WorkflowSpecValidationTestCase):

View File

@ -19,8 +19,8 @@ import re
import yaml
from mistral import exceptions as exc
from mistral.tests.unit.workbook.v2 import base
from mistral.workbook.v2 import workbook
from mistral.lang.v2 import workbook
from mistral.tests.unit.lang.v2 import base
class WorkbookSpecValidation(base.WorkbookSpecValidationTestCase):

View File

@ -18,7 +18,7 @@ import copy
import yaml
from mistral import exceptions as exc
from mistral.tests.unit.workbook.v2 import base
from mistral.tests.unit.lang.v2 import base
from mistral import utils

View File

@ -15,10 +15,10 @@
from oslo_config import cfg
from mistral.db.v2 import api as db_api
from mistral.lang import parser as spec_parser
from mistral.services import actions as action_service
from mistral.tests.unit import base
from mistral import utils
from mistral.workbook import parser as spec_parser
# Use the set_default method to set value otherwise in certain test cases

View File

@ -15,9 +15,9 @@
from oslo_config import cfg
from mistral.db.v2 import api as db_api
from mistral.lang import parser as spec_parser
from mistral.services import workbooks as wb_service
from mistral.tests.unit import base
from mistral.workbook import parser as spec_parser
# Use the set_default method to set value otherwise in certain test cases

View File

@ -19,10 +19,10 @@ from oslo_config import cfg
from mistral.db.v2.sqlalchemy import api as db_api
from mistral import exceptions as exc
from mistral.lang import parser as spec_parser
from mistral.services import workflows as wf_service
from mistral.tests.unit import base
from mistral import utils
from mistral.workbook import parser as spec_parser
from mistral.workflow import states

View File

@ -17,9 +17,9 @@ import mock
from mistral.db.v2 import api as db_api
from mistral.db.v2.sqlalchemy import models
from mistral import exceptions as exc
from mistral.lang import parser as spec_parser
from mistral.services import workflows as wf_service
from mistral.tests.unit import base
from mistral.workbook import parser as spec_parser
from mistral.workflow import direct_workflow as d_wf
from mistral.workflow import states

View File

@ -15,9 +15,9 @@
from mistral.db.v2 import api as db_api
from mistral.db.v2.sqlalchemy import models
from mistral import exceptions as exc
from mistral.lang import parser as spec_parser
from mistral.services import workbooks as wb_service
from mistral.tests.unit import base
from mistral.workbook import parser as spec_parser
from mistral.workflow import reverse_workflow as reverse_wf
from mistral.workflow import states

View File

@ -13,8 +13,8 @@
# limitations under the License.
from mistral.lang import parser as spec_parser
from mistral.tests.unit import base
from mistral.workbook import parser as spec_parser
from mistral.workflow import base as wf_base
from mistral.workflow import direct_workflow as direct_wf
from mistral.workflow import reverse_workflow as reverse_wf

View File

@ -21,8 +21,8 @@ from oslo_log import log as logging
from osprofiler import profiler
from mistral import exceptions as exc
from mistral.lang import parser as spec_parser
from mistral import utils as u
from mistral.workbook import parser as spec_parser
from mistral.workflow import commands
from mistral.workflow import data_flow
from mistral.workflow import lookup_utils

View File

@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from mistral.workbook import parser as spec_parser
from mistral.workbook.v2 import tasks
from mistral.lang import parser as spec_parser
from mistral.lang.v2 import tasks
from mistral.workflow import states

View File

@ -22,9 +22,9 @@ from mistral import context as auth_ctx
from mistral.db.v2.sqlalchemy import models
from mistral import exceptions as exc
from mistral import expressions as expr
from mistral.lang import parser as spec_parser
from mistral import utils
from mistral.utils import inspect_utils
from mistral.workbook import parser as spec_parser
from mistral.workflow import states
LOG = logging.getLogger(__name__)