Skip to content

Commit

Permalink
delete workspace via websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
hans-permana committed Feb 10, 2017
1 parent 90278de commit e60a840
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion dedop/ui/workspace_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ def create_workspace(self, workspace_name: str) -> Workspace:

def delete_workspace(self, workspace_name: str):
"""
:param workspace_root_dir: workspace base directory eg. ~/.dedop/workspaces
:param workspace_name: workspace name to be deleted
:raise: WorkspaceError: thrown when workspace not found or cannot delete the workspace
"""
Expand Down
6 changes: 2 additions & 4 deletions dedop/webapi/websocket.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from dedop.conf.defaults import DEFAULT_WORKSPACE_PATH
from dedop.ui.workspace_manager import WorkspaceManager


Expand Down Expand Up @@ -26,6 +25,5 @@ def new_workspace(self, workspace_name) -> dict:
workspace = self.workspace_manager.create_workspace(workspace_name)
return workspace.to_json_dict()

def delete_workspace(self, workspace_name) -> dict():
workspace = self.workspace_manager.delete_workspace(workspace_name)
return workspace.to_json_dict()
def delete_workspace(self, workspace_name) -> None:
self.workspace_manager.delete_workspace(workspace_name)

0 comments on commit e60a840

Please sign in to comment.