Skip to content

Commit

Permalink
add inputs via websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
hans-permana committed Feb 15, 2017
1 parent 1c56449 commit 974c2e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dedop/webapi/websocket.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from cate.util import Monitor
from typing import List

from dedop.ui.workspace_manager import WorkspaceManager


Expand Down Expand Up @@ -42,3 +45,6 @@ def get_all_workspaces(self) -> dict:
return {
"workspaces": workspace_names
}

def add_input_files(self, workspace_name: str, input_file_paths: List[str]):
self.workspace_manager.add_inputs(workspace_name, input_file_paths, Monitor.NONE)

0 comments on commit 974c2e5

Please sign in to comment.