-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathurls.py
81 lines (63 loc) · 2.88 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
from django.conf.urls.defaults import patterns, include, url
#from tracks.views import xhr_test, mytest, home
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
from django.conf import settings
REPO_ROOT=settings.REPO_ROOT
urlpatterns = patterns(REPO_ROOT + '.apps.tracks.views',
('^hello/$', 'xhr_test'),
('^test/$', 'mytest'),
#('^login/$', 'django.contrib.auth.views.login'),
('^listWirings/$', 'listWirings'),
('^interactors/$', 'showInteractors'),
('^plotWindow/$', 'showPlotWindow'),
('^sliceWindow/$', 'showSliceWindow'),
('^uploadFiles/$', 'uploadFiles'),
('^filesExist/$', 'filesExist'),
('^getBinaryData/', 'getBinaryData'),
('^json/$','return_data'),
('^metadatajson/$', 'return_metadata'),
('^test_table/$','testTable'),
#collaboration
('^project/collaborate/$', 'email_collaborator'),
#('^project/join_collaboration/(?P<email_address>\[A-Za-z0-9_@.]+)/(?P<activation_key>\w+)$', 'add_collaborator'),
('^project/join_collaboration/(?P<email_activation_key>.+)$', 'add_collaborator'),
# nd-plot interactor calculations
('^calculateSlice/', 'calculate_segment_interactor'),
# Wiring editor display urls
('^editor/$', 'displayEditor'),
('^editor/langSelect/$', 'languageSelect'),
# Wiring editor adapter urls
('^editor/listWirings/$', 'listWirings'),
('^editor/saveWiring/$', 'saveWiring'),
('^editor/runReduction/$', 'runReduction'),
('^editor/saveData/$', 'saveData'),
('^editor/uploadFiles/$', 'uploadFiles'),
('^editor/getCSV/$', 'getCSV'),
# FTP side loader
('^FTPloader/$', 'showFTPloader'),
('^loadFiles/getFTPdirs/', 'getFTPdirectories'),
('^uploadFTPFiles/$', 'uploadFTPFiles'),
# File loader display urls (testing, 7/6)
('^loadFiles/$', 'displayFileLoad'),
('^saveUpdate/$', 'return_files_metadata'),
# user projects/experiments/instruments/files interactions
('^myProjects/$', 'myProjects'),
('^myProjects/editProject/(?P<project_id>\d+)/$', 'editProject'),
('^myProjects/editProject/\d+/editExperiment/(?P<experiment_id>\d+)', 'editExperiment'),
('^editProject/editExperiment/$', 'editExperiment'),
# Examples:
# url(r'^$', 'dataflow.views.home', name='home'),
# url(r'^dataflow/', include('dataflow.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# url(r'^admin/', include(admin.site.urls)),
)
urlpatterns += patterns('',
url(r'^admin/', include(admin.site.urls)),
(r'', include('registration.urls')),
(r'^profiles/', include('profiles.urls')),
(r'', REPO_ROOT + '.apps.tracks.views.home'),
)