Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clowdflows
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alain Shakour
clowdflows
Commits
42515a21
Commit
42515a21
authored
Jun 25, 2015
by
Janez
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'muse' of /home/git/repositories/kt/mothra
parents
6ef5c41e
0675162a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
9 deletions
+33
-9
workflows/MUSE_v3/interaction_views.py
workflows/MUSE_v3/interaction_views.py
+2
-2
workflows/MUSE_v3/library.py
workflows/MUSE_v3/library.py
+26
-2
workflows/MUSE_v3/package_data/widgets/15044fea-249e-47e4-85bb-9f221dff407c.json
...ge_data/widgets/15044fea-249e-47e4-85bb-9f221dff407c.json
+1
-1
workflows/MUSE_v3/package_data/widgets/686ae43e-46db-4340-8c21-15d79d84ae81.json
...ge_data/widgets/686ae43e-46db-4340-8c21-15d79d84ae81.json
+3
-3
workflows/MUSE_v3/package_data/widgets/e69cf7bf-378c-4f51-8a7f-1e8f523432dd.json
...ge_data/widgets/e69cf7bf-378c-4f51-8a7f-1e8f523432dd.json
+1
-1
workflows/MUSE_v3/templates/visualizations/MUSE_string_to_file_v3.html
...E_v3/templates/visualizations/MUSE_string_to_file_v3.html
+0
-0
No files found.
workflows/MUSE_v3/interaction_views.py
View file @
42515a21
...
...
@@ -5,7 +5,7 @@ def MUSE_v3_filter_integers(request,input_dict,output_dict,widget):
def
MUSE_string_to_file
(
request
,
input_dict
,
output_dict
,
widget
):
def
MUSE_string_to_file
_V3
(
request
,
input_dict
,
output_dict
,
widget
):
from
mothra.settings
import
MEDIA_ROOT
from
workflows.helpers
import
ensure_dir
...
...
@@ -14,5 +14,5 @@ def MUSE_string_to_file(request, input_dict, output_dict, widget):
ensure_dir
(
destination
)
with
open
(
destination
,
'w'
)
as
f
:
f
.
write
(
str
(
input_dict
[
'data'
]))
return
render
(
request
,
'visualizations/MUSE_string_to_file.html'
,
{
'widget'
:
widget
,
'fileURL'
:
basename
})
return
render
(
request
,
'visualizations/MUSE_string_to_file
_v3
.html'
,
{
'widget'
:
widget
,
'fileURL'
:
basename
})
workflows/MUSE_v3/library.py
View file @
42515a21
...
...
@@ -218,7 +218,7 @@ def MUSE_PG_GDEE_path(input_dict):
#### COPIED FROM OLD MUSE PACKAGE
def
MUSE_mapping_to_KR_precomputed
(
input_dict
):
def
MUSE_mapping_to_KR_precomputed
_V3
(
input_dict
):
url
=
input_dict
[
'url'
]
data
=
input_dict
[
'input_data'
]
...
...
@@ -232,7 +232,7 @@ def MUSE_mapping_to_KR_precomputed(input_dict):
def
MUSE_mapping_to_KR
(
input_dict
):
def
MUSE_mapping_to_KR
_V3
(
input_dict
):
url
=
input_dict
[
'url'
]
data
=
input_dict
[
'input_data'
]
...
...
@@ -247,7 +247,31 @@ def MUSE_mapping_to_KR(input_dict):
def
MUSE_string_to_file_V3
(
input_dict
):
return
{}
def
MUSE_string_to_file_finished_V3
(
postdata
,
input_dict
,
output_dict
):
from
socket
import
getfqdn
import
sys
if
len
(
sys
.
argv
)
>
1
:
if
len
(
sys
.
argv
)
>
2
and
'.'
in
sys
.
argv
[
2
]
and
':'
in
sys
.
argv
[
2
]:
port
=
sys
.
argv
[
2
].
split
(
':'
)[
1
]
else
:
port
=
8000
DEVSERVER
=
sys
.
argv
[
1
].
startswith
(
'runserver'
)
else
:
DEVSERVER
=
False
fqdn
=
'127.0.0.1:'
+
str
(
port
)
if
DEVSERVER
else
getfqdn
()
# dirty,dirty
if
fqdn
==
'workflow'
:
fqdn
=
'workflow.ijs.si'
fqdn
=
'http://'
+
fqdn
fileURL
=
fqdn
+
postdata
.
get
(
'fileURL'
)[
0
]
return
{
'fileURL'
:
fileURL
}
workflows/MUSE_v3/package_data/widgets/15044fea-249e-47e4-85bb-9f221dff407c.json
View file @
42515a21
...
...
@@ -12,7 +12,7 @@
"image"
:
""
,
"description"
:
"Returns the precomputed mapping to knowledge representation for Tuk story"
,
"static_image"
:
""
,
"action"
:
"MUSE_mapping_to_KR_precomputed"
,
"action"
:
"MUSE_mapping_to_KR_precomputed
_V3
"
,
"visualization_view"
:
""
,
"streaming_visualization_view"
:
""
,
"post_interact_action"
:
""
,
...
...
workflows/MUSE_v3/package_data/widgets/686ae43e-46db-4340-8c21-15d79d84ae81.json
View file @
42515a21
...
...
@@ -7,15 +7,15 @@
"uid"
:
"686ae43e-46db-4340-8c21-15d79d84ae81"
,
"windows_queue"
:
false
,
"package"
:
"MUSE_v3"
,
"interaction_view"
:
"MUSE_string_to_file"
,
"interaction_view"
:
"MUSE_string_to_file
_V3
"
,
"has_progress_bar"
:
false
,
"image"
:
""
,
"description"
:
"Creates a statically served file from the given (text) content."
,
"static_image"
:
""
,
"action"
:
"MUSE_string_to_file"
,
"action"
:
"MUSE_string_to_file
_V3
"
,
"visualization_view"
:
""
,
"streaming_visualization_view"
:
""
,
"post_interact_action"
:
"MUSE_string_to_file_finished"
,
"post_interact_action"
:
"MUSE_string_to_file_finished
_V3
"
,
"wsdl_method"
:
""
,
"wsdl"
:
""
,
"interactive"
:
true
,
...
...
workflows/MUSE_v3/package_data/widgets/e69cf7bf-378c-4f51-8a7f-1e8f523432dd.json
View file @
42515a21
...
...
@@ -12,7 +12,7 @@
"image"
:
""
,
"description"
:
"Calls the mapping to knowledge representation service"
,
"static_image"
:
""
,
"action"
:
"MUSE_mapping_to_KR"
,
"action"
:
"MUSE_mapping_to_KR
_V3
"
,
"visualization_view"
:
""
,
"streaming_visualization_view"
:
""
,
"post_interact_action"
:
""
,
...
...
workflows/MUSE_v3/templates/visualizations/MUSE_string_to_file.html
→
workflows/MUSE_v3/templates/visualizations/MUSE_string_to_file
_v3
.html
View file @
42515a21
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment