diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/urls.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/urls.py | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py new file mode 100644 index 0000000000..a9c05922c2 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/urls.py | |||
@@ -0,0 +1,87 @@ | |||
1 | # | ||
2 | # BitBake Toaster Implementation | ||
3 | # | ||
4 | # Copyright (C) 2013 Intel Corporation | ||
5 | # | ||
6 | # This program is free software; you can redistribute it and/or modify | ||
7 | # it under the terms of the GNU General Public License version 2 as | ||
8 | # published by the Free Software Foundation. | ||
9 | # | ||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | # GNU General Public License for more details. | ||
14 | # | ||
15 | # You should have received a copy of the GNU General Public License along | ||
16 | # with this program; if not, write to the Free Software Foundation, Inc., | ||
17 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | |||
19 | from django.conf.urls import patterns, include, url | ||
20 | from django.views.generic import RedirectView | ||
21 | |||
22 | urlpatterns = patterns('toastergui.views', | ||
23 | # landing page | ||
24 | url(r'^builds/$', 'builds', name='all-builds'), | ||
25 | # build info navigation | ||
26 | url(r'^build/(?P<build_id>\d+)$', 'builddashboard', name="builddashboard"), | ||
27 | |||
28 | url(r'^build/(?P<build_id>\d+)/tasks/$', 'tasks', name='tasks'), | ||
29 | url(r'^build/(?P<build_id>\d+)/tasks/(?P<task_id>\d+)/$', 'tasks_task', name='tasks_task'), | ||
30 | url(r'^build/(?P<build_id>\d+)/task/(?P<task_id>\d+)$', 'task', name='task'), | ||
31 | |||
32 | url(r'^build/(?P<build_id>\d+)/recipes/$', 'recipes', name='recipes'), | ||
33 | url(r'^build/(?P<build_id>\d+)/recipe/(?P<recipe_id>\d+)$', 'recipe', name='recipe'), | ||
34 | |||
35 | url(r'^build/(?P<build_id>\d+)/packages/$', 'bpackage', name='packages'), | ||
36 | url(r'^build/(?P<build_id>\d+)/package/(?P<package_id>\d+)$', 'package_built_detail', | ||
37 | name='package_built_detail'), | ||
38 | url(r'^build/(?P<build_id>\d+)/package_built_dependencies/(?P<package_id>\d+)$', | ||
39 | 'package_built_dependencies', name='package_built_dependencies'), | ||
40 | url(r'^build/(?P<build_id>\d+)/package_included_detail/(?P<target_id>\d+)/(?P<package_id>\d+)$', | ||
41 | 'package_included_detail', name='package_included_detail'), | ||
42 | url(r'^build/(?P<build_id>\d+)/package_included_dependencies/(?P<target_id>\d+)/(?P<package_id>\d+)$', | ||
43 | 'package_included_dependencies', name='package_included_dependencies'), | ||
44 | url(r'^build/(?P<build_id>\d+)/package_included_reverse_dependencies/(?P<target_id>\d+)/(?P<package_id>\d+)$', | ||
45 | 'package_included_reverse_dependencies', name='package_included_reverse_dependencies'), | ||
46 | |||
47 | # images are known as targets in the internal model | ||
48 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)$', 'target', name='target'), | ||
49 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/targetpkg$', 'targetpkg', name='targetpkg'), | ||
50 | url(r'^dentries/build/(?P<build_id>\d+)/target/(?P<target_id>\d+)$', 'dirinfo_ajax', name='dirinfo_ajax'), | ||
51 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/dirinfo$', 'dirinfo', name='dirinfo'), | ||
52 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/dirinfo_filepath/(?P<file_path>(?:/[^/\n]+)*)$', 'dirinfo', name='dirinfo_filepath'), | ||
53 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/packages$', 'tpackage', name='targetpackages'), | ||
54 | url(r'^build/(?P<build_id>\d+)/configuration$', 'configuration', name='configuration'), | ||
55 | url(r'^build/(?P<build_id>\d+)/configvars$', 'configvars', name='configvars'), | ||
56 | url(r'^build/(?P<build_id>\d+)/buildtime$', 'buildtime', name='buildtime'), | ||
57 | url(r'^build/(?P<build_id>\d+)/cpuusage$', 'cpuusage', name='cpuusage'), | ||
58 | url(r'^build/(?P<build_id>\d+)/diskio$', 'diskio', name='diskio'), | ||
59 | |||
60 | # image information dir - not yet implemented | ||
61 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/packagefile/(?P<packagefile_id>\d+)$', | ||
62 | 'image_information_dir', name='image_information_dir'), | ||
63 | |||
64 | |||
65 | # urls not linked from the dashboard | ||
66 | url(r'^layerversions/(?P<layerversion_id>\d+)/recipes/.*$', 'layer_versions_recipes', name='layer_versions_recipes'), | ||
67 | |||
68 | # project URLs | ||
69 | url(r'^newproject/$', 'newproject', name='newproject'), | ||
70 | url(r'^importlayer/$', 'importlayer', name='importlayer'), | ||
71 | |||
72 | url(r'^layers/$', 'layers', name='layers'), | ||
73 | url(r'^layer/(?P<layerid>\d+)/$', 'layerdetails', name='layerdetails'), | ||
74 | url(r'^targets/$', 'targets', name='targets'), | ||
75 | url(r'^machines/$', 'machines', name='machines'), | ||
76 | |||
77 | url(r'^project/(?P<pid>\d+)/$', 'project', name='project'), | ||
78 | url(r'^project/(?P<pid>\d+)/configuration$', 'projectconf', name='projectconf'), | ||
79 | url(r'^project/(?P<pid>\d+)/builds$', 'projectbuilds', name='projectbuilds'), | ||
80 | |||
81 | url(r'^xhr_projectbuild/(?P<pid>\d+)/$', 'xhr_projectbuild', name='xhr_projectbuild'), | ||
82 | url(r'^xhr_projectedit/(?P<pid>\d+)/$', 'xhr_projectedit', name='xhr_projectedit'), | ||
83 | |||
84 | |||
85 | # default redirection | ||
86 | url(r'^$', RedirectView.as_view( url= 'builds/')), | ||
87 | ) | ||