summaryrefslogtreecommitdiff
path: root/taskflow/db/sqlalchemy/api.py
diff options
context:
space:
mode:
authorJessica Lucci <jessicalucci14@gmail.com>2013-05-21 16:34:49 -0500
committerJessica Lucci <jessicalucci14@gmail.com>2013-05-21 16:34:49 -0500
commit2d8fbceae9e929d822265c2a9aaa2662d7cbf6b3 (patch)
tree6a186a2574f538ecb4faa4fc239c30e3ae1aee4a /taskflow/db/sqlalchemy/api.py
parentb5401c0ef8bfc23921b8154209cb0ffded84a549 (diff)
downloadtaskflow-2d8fbceae9e929d822265c2a9aaa2662d7cbf6b3.tar.gz
cleaning for initial pull request
Diffstat (limited to 'taskflow/db/sqlalchemy/api.py')
-rw-r--r--taskflow/db/sqlalchemy/api.py28
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"""
-
-