Workspace now response to .members

This commit is contained in:
richard-dds
2018-08-22 11:49:05 -04:00
parent 379461e6fb
commit 9875a11860
4 changed files with 39 additions and 57 deletions

View File

@@ -69,52 +69,3 @@ class Workspaces(object):
)
db.session.add(workspace_role)
return workspace_role
class Members(object):
def __init__(self):
pass
@classmethod
def create(cls, creator_id, body):
pass
@classmethod
def get(cls, request_id):
pass
@classmethod
def get_many(cls, workspace_id):
return [
{
"first_name": "Danny",
"last_name": "Knight",
"email": "dknight@thenavy.mil",
"dod_id": "1257892124",
"workspace_role": "Developer",
"status": "Pending",
"num_projects": "4",
},
{
"first_name": "Mario",
"last_name": "Hudson",
"email": "mhudson@thearmy.mil",
"dod_id": "4357892125",
"workspace_role": "CCPO",
"status": "Active",
"num_projects": "0",
},
{
"first_name": "Louise",
"last_name": "Greer",
"email": "lgreer@theairforce.mil",
"dod_id": "7257892125",
"workspace_role": "Admin",
"status": "Pending",
"num_projects": "43",
},
]
@classmethod
def update(cls, request_id, request_delta):
pass