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
e3593d9b
Commit
e3593d9b
authored
Oct 30, 2012
by
matjaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorganized latino sub-module to make the lowest possible effect to dev branch
parent
72a11cfb
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
15 additions
and
8 deletions
+15
-8
mothra/settings.py
mothra/settings.py
+2
-0
workflows/latino/latino.py
workflows/latino/latino.py
+2
-1
workflows/latino/templates/visualizations/adc.html
workflows/latino/templates/visualizations/adc.html
+0
-0
workflows/latino/templates/visualizations/advanced_object_viewer.html
...tino/templates/visualizations/advanced_object_viewer.html
+0
-0
workflows/latino/urls.py
workflows/latino/urls.py
+4
-4
workflows/latino/visualization_views.py
workflows/latino/visualization_views.py
+1
-0
workflows/library.py
workflows/library.py
+1
-0
workflows/static/js/new-script.js
workflows/static/js/new-script.js
+1
-2
workflows/static/widget-icons/question-mark.png
workflows/static/widget-icons/question-mark.png
+0
-0
workflows/templates/parameters.html
workflows/templates/parameters.html
+1
-1
workflows/views.py
workflows/views.py
+2
-0
workflows/visualization_views.py
workflows/visualization_views.py
+1
-0
No files found.
mothra/settings.py
View file @
e3593d9b
...
...
@@ -170,6 +170,7 @@ if USE_CONCURRENCY:
'django.contrib.admin'
,
'south'
,
'workflows'
,
'workflows.latino'
,
'website'
,
'signuplogin'
,
'django_extensions'
,
...
...
@@ -188,6 +189,7 @@ else:
'django.contrib.admin'
,
'south'
,
'workflows'
,
'workflows.latino'
,
'website'
,
'signuplogin'
,
'django_extensions'
,
...
...
workflows/latino/latino.py
View file @
e3593d9b
...
...
@@ -530,7 +530,7 @@ def CrossValidationPredefSplits(csf, ds, sets):
# ADC visualisation
def
adcView
(
request
,
input_dict
,
output_dict
,
widget
):
import
django.shortcuts
view
=
django
.
shortcuts
.
render
(
request
,
'visualizations
_latino
/adc.html'
,
{
'widget'
:
widget
,
view
=
django
.
shortcuts
.
render
(
request
,
'visualizations/adc.html'
,
{
'widget'
:
widget
,
'input_dict'
:
input_dict
,
'output_dict'
:
output_dict
})
return
view
...
...
@@ -547,6 +547,7 @@ def ShowTable(request, input_dict, output_dict, widget):
import
django.shortcuts
tbl
=
input_dict
[
'tbl'
]
output_dict
=
{
'attrs'
:
list
(
tbl
.
items
()[
0
][
0
]),
'metas'
:[],
'data'
:
tbl
.
values
()[
0
],
'title'
:
'Vocabulary Table'
}
templ
=
django
.
template
.
loader
.
get_template
(
'visualizations/table_viewer.html'
)
view
=
django
.
shortcuts
.
render
(
request
,
'visualizations/table_viewer.html'
,{
'widget'
:
widget
,
'input_dict'
:
input_dict
,
'output_dict'
:
output_dict
})
return
view
...
...
workflows/
templates/visualizations_latino
/adc.html
→
workflows/
latino/templates/visualizations
/adc.html
View file @
e3593d9b
File moved
workflows/templates/visualizations/advanced_object_viewer.html
→
workflows/
latino/
templates/visualizations/advanced_object_viewer.html
View file @
e3593d9b
File moved
workflows/latino/urls.py
View file @
e3593d9b
from
django.conf.urls.defaults
import
patterns
,
include
,
url
urlpatterns_latino
=
patterns
(
''
,
url
(
r
'^get-adc-index/widget(?P<widget_id>[0-9]+)/nx/Index.html$'
,
'workflows.views.get_adc_index'
,
name
=
'get adc index'
),
url
(
r
'^get-adc-index/widget(?P<widget_id>[0-9]+)/(?P<narrow_doc>n?)x/Index.html$'
,
'workflows.views.get_adc_index'
,
name
=
'get adc index'
),
url
(
r
'^get-adc-index/widget(?P<widget_id>[0-9]+)/(?P<narrow_doc>n?)x/Index(?P<document_id_from>[0-9]+)-(?P<document_id_to>[0-9]+).html$'
,
'workflows.views.get_adc_index'
,
name
=
'get adc index'
),
url
(
r
'^get-adc-index/widget(?P<widget_id>[0-9]+)/(?P<narrow_doc>n?)x/Document(?P<document_id>[0-9]+).html'
,
'workflows.views.get_adc_page'
,
name
=
'get adc page'
),
url
(
r
'^get-adc-index/widget(?P<widget_id>[0-9]+)/nx/Index.html$'
,
'workflows.
latino.
views.get_adc_index'
,
name
=
'get adc index'
),
url
(
r
'^get-adc-index/widget(?P<widget_id>[0-9]+)/(?P<narrow_doc>n?)x/Index.html$'
,
'workflows.
latino.
views.get_adc_index'
,
name
=
'get adc index'
),
url
(
r
'^get-adc-index/widget(?P<widget_id>[0-9]+)/(?P<narrow_doc>n?)x/Index(?P<document_id_from>[0-9]+)-(?P<document_id_to>[0-9]+).html$'
,
'workflows.
latino.
views.get_adc_index'
,
name
=
'get adc index'
),
url
(
r
'^get-adc-index/widget(?P<widget_id>[0-9]+)/(?P<narrow_doc>n?)x/Document(?P<document_id>[0-9]+).html'
,
'workflows.
latino.
views.get_adc_page'
,
name
=
'get adc page'
),
)
\ No newline at end of file
workflows/latino/visualization_views.py
View file @
e3593d9b
from
django.shortcuts
import
render
#latino
import
os
import
latino
import
logging
...
...
workflows/library.py
View file @
e3593d9b
...
...
@@ -869,3 +869,4 @@ def alter_table_finished(postdata, input_dict, output_dict):
except
:
# Catch orange exception and give a proper error message.
raise
Exception
(
"Illegal value '%s' for discrete attribute '%s', legal values are: %s."
%
(
new_value
,
att
,
new_table
.
domain
[
att
].
values
))
return
{
'altered_data'
:
new_table
}
workflows/static/js/new-script.js
View file @
e3593d9b
...
...
@@ -689,8 +689,7 @@ function updateWidgetListeners() {
}
}
});
$
(
"
#dialogs div.widgetrenamedialog
"
).
dialog
({
autoOpen
:
false
,
modal
:
false
,
...
...
workflows/static/widget-icons/question-mark.png
View replaced file @
72a11cfb
View file @
e3593d9b
5.86 KB
|
W:
|
H:
252 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
workflows/templates/parameters.html
View file @
e3593d9b
...
...
@@ -6,7 +6,7 @@
<input
id=
"pref-{{p.pk}}"
name=
"pref-{{p.pk}}"
type=
"checkbox"
value=
"true"
{%
ifequal
p.value
'
true
'
%}
checked
{%
endifequal
%}
style=
"width:15px;display:inline;float:left;"
/>
{% endif %}
<label
for=
"pref-{{p.pk}}"
{%
if
p.parameter_type =
=
"
checkbox
"
%}
style=
"float:left;"
{%
endif
%}
>
{{p.name}}
</label>
{% if p.parameter_type == "checkbox" %}
<div
class=
"clear"
>
<!---->
</div>
{% endif %}
{% if p.parameter_type == "text"
or p.parameter_type == None
%}
{% if p.parameter_type == "text" %}
<input
id=
"pref-{{p.pk}}"
name=
"pref-{{p.pk}}"
type=
"text"
value=
"{{p.value}}"
onchange=
""
class=
"text ui-widget-content ui-corner-all"
/>
{% endif %}
{% if p.parameter_type == "select" %}
...
...
workflows/views.py
View file @
e3593d9b
...
...
@@ -22,6 +22,8 @@ from django.contrib.auth.decorators import login_required
#settings
from
mothra.settings
import
DEBUG
,
FILES_FOLDER
#ostalo
import
os
...
...
workflows/visualization_views.py
View file @
e3593d9b
...
...
@@ -218,3 +218,4 @@ def term_candidate_viewer(request, input_dict, output_dict, widget):
})
terms
=
sorted
(
terms
,
key
=
lambda
x
:
x
[
'score'
],
reverse
=
True
)
return
render
(
request
,
'visualizations/terms.html'
,
{
'widget'
:
widget
,
'terms'
:
terms
})
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