diff options
| author | Jessica Lucci <jessicalucci14@gmail.com> | 2013-05-21 16:34:49 -0500 |
|---|---|---|
| committer | Jessica Lucci <jessicalucci14@gmail.com> | 2013-05-21 16:34:49 -0500 |
| commit | 2d8fbceae9e929d822265c2a9aaa2662d7cbf6b3 (patch) | |
| tree | 6a186a2574f538ecb4faa4fc239c30e3ae1aee4a /taskflow/db/sqlalchemy/api.py | |
| parent | b5401c0ef8bfc23921b8154209cb0ffded84a549 (diff) | |
| download | taskflow-2d8fbceae9e929d822265c2a9aaa2662d7cbf6b3.tar.gz | |
cleaning for initial pull request
Diffstat (limited to 'taskflow/db/sqlalchemy/api.py')
| -rw-r--r-- | taskflow/db/sqlalchemy/api.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/taskflow/db/sqlalchemy/api.py b/taskflow/db/sqlalchemy/api.py index 3f03c1c..c6163e5 100644 --- a/taskflow/db/sqlalchemy/api.py +++ b/taskflow/db/sqlalchemy/api.py @@ -33,31 +33,3 @@ def model_query(context, *args, **kwargs): query = session.query(*args) return query - -def workflow_get(context, workflow_id): - """Return one workflow with matching workflow_id""" - result = model_query(context, models.Workflow).get(workflow_id) - - if not result: - raise exception.NotFound("No workflow found " - "with id %s." % (workflow_id,)) - -def workflow_get_all(context): - """Return all workflows""" - results = model_query(context, models.Workflow).all() - - if not results: - raise exception.NotFound("No workflows were found.") - - return results - -def workflow_get_names(context): - """Return all workflow names""" - results = model_auery(context, models.Workflow.name).all() - - return zip(*results) - -def workflow_create(context, workflow_id): - """Create new workflow with workflow_id""" - - |
