urls.py 4.38 KB
Newer Older
Janez K's avatar
Janez K committed
1 2
from django.conf.urls.defaults import patterns, include, url

3
packageUrls = {}
4
from workflows import module_importer
5 6 7
def set_package_url(name, value, package):
    if name == 'urlpatterns':
        packageUrls[package] = value
8
module_importer.import_all_packages_libs("urls",set_package_url)
Janez K's avatar
Janez K committed
9

10 11 12 13 14 15
urlpatterns = patterns('',)

for pck in  packageUrls:
    urlpatterns += patterns('',url(r'^'+pck+'/', include(packageUrls[pck])),)

urlpatterns += patterns('',
Janez K's avatar
Janez K committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
    url(r'^$', 'workflows.views.index', name='the index'),
    url(r'^new-workflow/$', 'workflows.views.new_workflow', name='new workflow'),
    url(r'^add-widget/$', 'workflows.views.add_widget', name='add widget'),
    url(r'^save-position/', 'workflows.views.save_position', name='save position'),
    url(r'^add-connection/', 'workflows.views.add_connection', name='add connection'),
    url(r'^delete-widget/', 'workflows.views.delete_widget', name='delete widget'),
    url(r'^delete-connection/', 'workflows.views.delete_connection', name='delete connection'),
    url(r'^add-subprocess/', 'workflows.views.add_subprocess', name='add subprocess'),
    url(r'^get-subprocess/', 'workflows.views.get_subprocess', name='get subprocess'),
    url(r'^add-input/', 'workflows.views.add_input', name='add input'),
    url(r'^add-output/', 'workflows.views.add_output', name='add output'),
    url(r'^add-for/', 'workflows.views.add_for', name='add for'),
    url(r'^synchronize-widgets/', 'workflows.views.synchronize_widgets', name='synchronize widgets'),
    url(r'^synchronize-connections/', 'workflows.views.synchronize_connections', name='synchronize connections'),
    url(r'^get-widget/', 'workflows.views.get_widget', name='get widget'),
    url(r'^get-parameters/', 'workflows.views.get_parameters', name='get parameters'),
    url(r'^save-parameter/', 'workflows.views.save_parameter', name='save parameter'),
33 34
    url(r'^get-configuration/', 'workflows.views.get_configuration', name='get configuration'),
    url(r'^save-configuration/', 'workflows.views.save_configuration', name='save configuration'),
Janez K's avatar
Janez K committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
    url(r'^get-rename/', 'workflows.views.get_rename_dialog', name='rename widget dialog'),
    url(r'^rename-widget/', 'workflows.views.rename_widget', name='rename widget'),
    url(r'^rename-workflow/', 'workflows.views.rename_workflow', name='rename workflow'),    
    url(r'^run-widget/', 'workflows.views.run_widget', name='run widget'),
    url(r'^widget-results/', 'workflows.views.widget_results', name='widget results'),
    url(r'^widget-visualization/', 'workflows.views.visualize_widget', name='widget visualization'),
    url(r'^get-unfinished/', 'workflows.views.get_unfinished', name='get unfinished'),
    url(r'^upload-handler/$', 'workflows.views.upload_handler', name='file upload'),
    url(r'^widget-interaction/', 'workflows.views.widget_interaction', name='widget interaction'),
    url(r'^finish-interaction/', 'workflows.views.finish_interaction', name='finish interaction'),
    url(r'^import-webservice/', 'workflows.views.import_webservice', name='import webservice'),
    
    url(r'^documentation/', 'workflows.views.documentation', name='documentation'),
    
    url(r'^get-designate-dialogs/', 'workflows.views.get_designate_dialogs', name='get designate dialogs'),
    
    url(r'^save-designation/', 'workflows.views.save_designation', name='save designation'),
    
    url(r'^get-category/', 'workflows.views.get_category', name='get category'),
    
    url(r'^widget-progress/', 'workflows.views.widget_progress', name='widget progress'),
    
    url(r'^copy-workflow/(?P<workflow_id>[0-9]+)/$', 'workflows.views.copy_workflow', name='copy workflow'),
    
    url(r'^workflow-url/', 'workflows.views.workflow_url', name='workflow url'),    
    
    url(r'^unfinish-visualizations/', 'workflows.views.unfinish_visualizations', name='unfinish visualizations'),
    
    url(r'^(?P<workflow_id>[0-9]+)/$', 'workflows.views.open_workflow', name='open workflow'),
    
65
    url(r'^sensitivity_analysis/', 'workflows.visualization_views.sensitivity_analysis_viewer', name='sensitivity analysis'),
66
    
67 68 69 70
    url(r'^reset-widget/', 'workflows.views.reset_widget', name='reset widget'),
    url(r'^get-executed-status/', 'workflows.views.get_executed_status', name='get executed status'),
    url(r'^reset-workflow/', 'workflows.views.reset_workflow', name='reset workflow'),

71
    url(r'^export-package/(?P<packages>.+)/$', 'workflows.views.export_package', name='export_package'),
Janez K's avatar
Janez K committed
72
)